aboutsummaryrefslogtreecommitdiffstats
path: root/translations
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-04 10:20:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-04 10:20:19 -0700
commit3d13804b70a48e550fb7f67955ec0e0381c899a9 (patch)
tree114b988b3325336cb0440635052a5c745566f2f4 /translations
parent5ff2ad9b18765889e3e4944f39ef1d05ce6db116 (diff)
downloadsubsurface-3d13804b70a48e550fb7f67955ec0e0381c899a9.tar.gz
Cmake: don't always rebuild the .ts files
That was unexpected. No, this should only be rebuilt when requested, not every time I run make. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'translations')
-rw-r--r--translations/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
index 08b80e4dc..58c184e52 100644
--- a/translations/CMakeLists.txt
+++ b/translations/CMakeLists.txt
@@ -36,7 +36,10 @@ set(TRANSLATION_FILES
# subsurface_ro_RO.ts
set(TRANSLATIONS ${TRANSLATIONS} PARENT_SCOPE)
-qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
qt5_add_translation(TRANSLATIONS ${TRANSLATION_FILES})
add_custom_target (translations ALL DEPENDS ${TRANSLATIONS})
-add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})
+
+# enable the following two lines to recreate the .ts files
+
+# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
+# add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})