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>
This commit is contained in:
Dirk Hohndel 2015-09-04 10:20:19 -07:00
parent 5ff2ad9b18
commit 3d13804b70

View file

@ -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})