From 3d13804b70a48e550fb7f67955ec0e0381c899a9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Sep 2015 10:20:19 -0700 Subject: 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 --- translations/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'translations/CMakeLists.txt') 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}) -- cgit v1.2.3-70-g09d2