summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/po/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/po/CMakeLists.txt b/utils/po/CMakeLists.txt
index 5cd3a903..2eb7f0f0 100644
--- a/utils/po/CMakeLists.txt
+++ b/utils/po/CMakeLists.txt
@@ -15,12 +15,14 @@ macro(UPDATE_POT_FILE input)
list(APPEND _commands
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none -s ${_poFile} "${CMAKE_CURRENT_SOURCE_DIR}/${_potFile}")
endforeach()
- add_custom_target(update_pot_${input}
- ALL
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_potFile}
COMMAND xgettext --keyword=_ --language=c++ --package-name=pdfsig --output-dir=po --output=${_potFile} ${input}.cc
${_commands}
- DEPENDS ../${input}.cc
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../${input}.cc
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..)
+ add_custom_target(update_pot_${input}
+ ALL
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_potFile})
endmacro()
UPDATE_POT_FILE(pdfsig)