diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-21 13:49:39 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-21 13:49:39 +0100 |
| commit | bc35ce59ff5e7df9956159d59bf07512a5a48fd8 (patch) | |
| tree | b8a891299505670b4572a65bb1c7a229c3ab3a8e /po | |
| parent | 7e42d73b46c1f1f37f0780ba5d009b7daeaba821 (diff) | |
Now everything builds in CMAKE_BUILD_DIR instead of some things in CMAKE_SOURCE_DIR
Diffstat (limited to 'po')
| -rw-r--r-- | po/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 3a8e055..bc41aed 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -12,13 +12,13 @@ SET ( _gmoFiles ) ############################################################################### FOREACH ( _current_PO_FILE ${_po_files} ) GET_FILENAME_COMPONENT( _lang ${_current_PO_FILE} NAME_WE ) - SET( _gmoFile ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}.gmo ) + SET( _gmoFile ${CMAKE_BINARY_DIR}/po/${_lang}.gmo ) add_custom_command( OUTPUT ${_gmoFile} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE} WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" DEPENDS ${_current_PO_FILE} ) - INSTALL ( FILES ${CMAKE_BINARY_DIR}/${_lang}.gmo + INSTALL ( FILES ${CMAKE_BINARY_DIR}/po/${_lang}.gmo DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${_lang}/LC_MESSAGES/ RENAME tuxanci.mo ) LIST(APPEND _gmoFiles ${_gmoFile}) ENDFOREACH(_current_PO_FILE) |