diff options
author | Roger Leigh <rleigh@debian.org> | 2013-09-30 22:15:21 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2013-09-30 23:06:07 +0100 |
commit | 025f43a03a71ee293ae27261b5d9a2e647d16d40 (patch) | |
tree | 87648f870388fbfda4379d34ecd7900eaec9a4f6 /po | |
parent | 66bb022a378f21406b37decdc15671588dc9d9a0 (diff) | |
download | schroot-025f43a03a71ee293ae27261b5d9a2e647d16d40.tar.gz |
cmake: po: Build .gmo files
Diffstat (limited to 'po')
-rw-r--r-- | po/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index fb42a9c4..7885bca3 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -28,10 +28,6 @@ if(BUILD_NLS) STRING(REGEX REPLACE "\n" ";" languages "${languages}") foreach(lang ${languages}) set(po_files ${po_files} "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po") - set(gmo_files ${gmo_files} "${lang}.gmo") - install(FILES "${lang}.gmo" - DESTINATION "${SCHROOT_LOCALE_DIR}/${lang}/LC_MESSAGES" - RENAME "${domain}.mo") endforeach(lang) file(READ ${CMAKE_CURRENT_SOURCE_DIR}/POTFILES.in potfiles) @@ -77,6 +73,10 @@ if(BUILD_NLS) "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po" VERBATIM) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${lang}.gmo" + DESTINATION "${SCHROOT_LOCALE_DIR}/${lang}/LC_MESSAGES" + RENAME "${domain}.mo") + set(gmo_files ${gmo_files} "${CMAKE_CURRENT_BINARY_DIR}/${lang}.gmo") endforeach(lang) add_custom_target(update-pot DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${domain}.pot") @@ -85,7 +85,7 @@ if(GIT_RELEASE_ENABLE) add_dependencies(git-release update-pot update-po) endif(GIT_RELEASE_ENABLE) - add_custom_target(update-gmo DEPENDS ${gmo_files}) + add_custom_target(update-gmo ALL DEPENDS ${gmo_files}) add_custom_target(po-notify COMMAND podebconf-report-po --call --withtranslators --noforce --podir=${CMAKE_CURRENT_SOURCE_DIR}) |