diff options
author | Tom Albers <toma@kde.org> | 2007-11-20 21:00:19 +0000 |
---|---|---|
committer | Tom Albers <toma@kde.org> | 2007-11-20 21:00:19 +0000 |
commit | 71749c79337d8470aeaf8809378eba45ae3c2ee4 (patch) | |
tree | 599b9d6bac3843f1d1af515864053de3c22a45e7 /modules | |
parent | 4b274a9927bf2d5d42de69c63703d4284663a8c9 (diff) | |
download | extra-cmake-modules-71749c79337d8470aeaf8809378eba45ae3c2ee4.tar.gz extra-cmake-modules-71749c79337d8470aeaf8809378eba45ae3c2ee4.tar.bz2 |
The po file is located in the source dir, so cd to that folder instead of the build dir. See k-c-d.
svn path=/trunk/KDE/kdelibs/; revision=739317
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindGettext.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/FindGettext.cmake b/modules/FindGettext.cmake index 121c59a5..682906e5 100644 --- a/modules/FindGettext.cmake +++ b/modules/FindGettext.cmake @@ -214,6 +214,7 @@ MACRO(GETTEXT_PROCESS_PO_FILES _lang) SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo) add_custom_command(OUTPUT ${_gmoFile} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE} + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" DEPENDS ${_current_PO_FILE} ) |