From 337ec5830a041ec1f6a149bf1a93f59da766e930 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 22 Apr 2018 12:06:47 +0200 Subject: [PATCH] Cmake build: Output error messages emitted by lyx_pot.py --- po/CreateLayoutTranslations.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/po/CreateLayoutTranslations.cmake b/po/CreateLayoutTranslations.cmake index 1987f412d3..1eff48a734 100644 --- a/po/CreateLayoutTranslations.cmake +++ b/po/CreateLayoutTranslations.cmake @@ -34,7 +34,11 @@ die_if(_err "Copy of layouttranslations failed") execute_process(COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${type} "--src_file=${_src_files}" + OUTPUT_VARIABLE _err_out RESULT_VARIABLE _err) +if(_err) + message(STATUS "${_err_out}") +endif() die_if(_err "Calling lyx_pot.py failed") execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${_dst}" "${TOP_SRC_DIR}/lib/layouttranslations" -- 2.39.2