From: Kornel Benko Date: Mon, 7 May 2018 11:29:57 +0000 (+0200) Subject: Cmake build: Recreate .pot files also if po/lyx_pot.py changes. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3451 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1d11333c4653ca699bd26a6c32a4f55fc5a7893e;p=lyx.git Cmake build: Recreate .pot files also if po/lyx_pot.py changes. --- diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 4b04d6ac9c..0e4cc615c0 100755 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -58,7 +58,7 @@ macro(add_gettext_python _par _dir) "-DSources=${_src_files}" "-DLYX_PY_POLIB=${LYX_PY_POLIB}" -P "${TOP_SRC_DIR}/po/CreateLayoutTranslations.cmake" - DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/lib/layouttranslations" + DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/lib/layouttranslations" "${TOP_SRC_DIR}/po/lyx_pot.py" COMMENT "${LYX_PYTHON_EXECUTABLE} ${TOP_SRC_DIR}/po/lyx_pot.py -b ${TOP_SRC_DIR} -o ${_dst} -t ${_par1} --src_file=${_src_files}" ) ADD_CUSTOM_TARGET(layouttranslations1 DEPENDS "${_dst}") @@ -74,7 +74,7 @@ macro(add_gettext_python _par _dir) PRE_BUILD COMMAND ${LYX_PYTHON_EXECUTABLE} ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}" - DEPENDS ${_sources} ${_src_files} + DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py" COMMENT "${LYX_PYTHON_EXECUTABLE} ${TOP_SRC_DIR}/po/lyx_pot.py -b ${TOP_SRC_DIR} -o ${_dst} -t ${_par1} --src_file=${_src_files}" ) LIST(APPEND _py_sources "${_dst}")