From 39b424facc7cec197fca821ebbaf953f437e9660 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 25 Oct 2018 03:15:16 +0200 Subject: [PATCH] Made sure translations are not deleted by make clean --- translations/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index ef3cdbf..3c5dce8 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -1,10 +1,11 @@ +set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM 1) find_package(Qt5LinguistTools REQUIRED) file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/translations/*.ts") file(GLOB TS_SRC_FILES "${PROJECT_SOURCE_DIR}/src/*") qt5_create_translation(QM_FILES ${TS_SRC_FILES} ${TS_FILES} OPTIONS -no-obsolete) -qt5_add_translation(QM_FILES ${TS_FILES}) +# qt5_add_translation(QM_FILES ${TS_FILES}) add_custom_target(translations ALL DEPENDS ${QM_FILES}) add_dependencies(${CMAKE_PROJECT_NAME} translations) add_dependencies(${CMAKE_PROJECT_NAME}-gui translations)