]> git.lyx.org Git - lyx.git/commitdiff
Cmake build: Recreate .pot files also if po/lyx_pot.py changes.
authorKornel Benko <kornel@lyx.org>
Mon, 7 May 2018 11:29:57 +0000 (13:29 +0200)
committerKornel Benko <kornel@lyx.org>
Mon, 7 May 2018 11:29:57 +0000 (13:29 +0200)
po/CMakeLists.txt

index 4b04d6ac9c7d3d2e51c151f8b6d8833717d15234..0e4cc615c0773b716acc3dc131b1507d2cf5a8da 100755 (executable)
@@ -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}")