X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=po%2FCreateLayoutTranslations.cmake;h=1eff48a734f54e6057bc10f656af2a78e0a22aed;hb=623cc13b60bc7345ad8a45bb1a6ab95e16dba6b0;hp=9f3d533e1195695b92e8a58d32dd22d1029a6d49;hpb=6743c6fa87ec1604d908378b576545f17038fa15;p=lyx.git diff --git a/po/CreateLayoutTranslations.cmake b/po/CreateLayoutTranslations.cmake index 9f3d533e11..1eff48a734 100644 --- a/po/CreateLayoutTranslations.cmake +++ b/po/CreateLayoutTranslations.cmake @@ -9,6 +9,7 @@ # -DLYX_PYTHON_EXECUTABLE=xxx \ # -DParType=xxx \ # -DSources=xxx \ +# -DLYX_PY_POLIB=${LYX_PY_POLIB} \ # -P "${TOP_SRC_DIR}/po/CreateLayoutTranslations.cmake" set(_dst ${DestFile}) @@ -23,6 +24,9 @@ macro(die_if _err text) endmacro() message(STATUS "Starting CreateLayoutTranslations") +if ("${LYX_PY_POLIB}" STREQUAL "") + message(STATUS "Missing needed pythons polib, be prepared for error") +endif() execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${TOP_SRC_DIR}/lib/layouttranslations" "${_dst}" RESULT_VARIABLE _err) die_if(_err "Copy of layouttranslations failed") @@ -30,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"