diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 21:59:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 21:59:51 -0700 |
commit | ce3a169cf9382d08c41d4d37a4b7f4daa2232092 (patch) | |
tree | d27859208f09820ab48c61c1f700322bb92fa1b2 | |
parent | 1ed1e188fd167e3ea3074bd2e6ec5cdd9ab984d3 (diff) | |
download | subsurface-ce3a169cf9382d08c41d4d37a4b7f4daa2232092.tar.gz |
cmake: try to get the dependency on the .qm files right
This is still not something I'm 100% sure I got right. But at least now it
correctly rebuilds the .qm files...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 43ae2c884..e836a83a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -443,9 +443,9 @@ 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_DEPENDENCIES(subsurface ${CMAKE_BINARY_DIR}/${TRANSLATION_QM}) set(TRANSLATIONS ${TRANSLATIONS} ${CMAKE_BINARY_DIR}/${TRANSLATION_QM}) endforeach() +SET_SOURCE_FILES_PROPERTIES(main.cpp PROPERTIES OBJECT_DEPENDS "${TRANSLATIONS}") if(QT_TRANSLATION_DIR STREQUAL "") set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations) |