diff options
Diffstat (limited to 'CMakeLists.txt')
-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) |