diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 16:19:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 16:19:45 -0700 |
commit | b79c01ab7ca96a6c3d684405aa0d9f7b7405903e (patch) | |
tree | 1445a7d6315f9824fb8b156e249566a0b553ceef | |
parent | 41c5b95ee14e9d6c92f5d9ed54a08f317b3a2080 (diff) | |
download | subsurface-b79c01ab7ca96a6c3d684405aa0d9f7b7405903e.tar.gz |
cmake: don't always create .qm files
The cmake keywords still confuse me at times.
A custom target is always recreated. How silly. But the correct (I think)
implementation is actually easier...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fc3fce49f..f87234a19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -432,11 +432,7 @@ foreach(TRANSLATION ${TRANSLATION_SRC}) COMMAND mkdir -p ${CMAKE_BINARY_DIR}/translations \\; ${LRELEASE} ${CMAKE_SOURCE_DIR}/${TRANSLATION} -qm ${CMAKE_BINARY_DIR}/${TRANSLATION_QM} DEPENDS ${TRANSLATION} ) - ADD_CUSTOM_TARGET( - generate_translations_${TRANSLATION_TARGET} - DEPENDS ${CMAKE_BINARY_DIR}/${TRANSLATION_QM} - ) - ADD_DEPENDENCIES(subsurface generate_translations_${TRANSLATION_TARGET}) + ADD_DEPENDENCIES(subsurface ${CMAKE_BINARY_DIR}/${TRANSLATION_QM}) set(TRANSLATIONS ${TRANSLATIONS} ${CMAKE_BINARY_DIR}/${TRANSLATION_QM}) endforeach() |