From b79c01ab7ca96a6c3d684405aa0d9f7b7405903e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 4 Apr 2015 16:19:45 -0700 Subject: 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 --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3-70-g09d2