# HG changeset patch # User Michiel Broek # Date 1666791970 -7200 # Node ID d3f439ba6fd80dc49eaf2ea1e0da58e355e8c735 # Parent f7e0efc8df02f404c85466e8ad23ddf54e971c74 Always update translations during make. diff -r f7e0efc8df02 -r d3f439ba6fd8 CMakeLists.txt --- a/CMakeLists.txt Mon Oct 24 20:01:43 2022 +0200 +++ b/CMakeLists.txt Wed Oct 26 15:46:10 2022 +0200 @@ -14,7 +14,6 @@ # Compile flags option(BUILD_DESIGNER_PLUGINS "If on, you will only build and install the designer plugins." OFF) -option(UPDATE_TRANSLATIONS "Enable rescanning sources to update .ts files" ON) IF( ${BUILD_DESIGNER_PLUGINS} ) message(STATUS "Building designer plugins" ) @@ -364,16 +363,8 @@ ELSE() - # Run with cmake -DUPDATE_TRANSLATIONS=ON .. - # or cmake -DUPDATE_TRANSLATIONS=OFF .. - - # if(UPDATE_TRANSLATIONS) - message("** parse sources for new translations") - qt5_create_translation(QM_FILES ${SOURCE_FILES} ${TS_FILES}) - # else() - # message("** update qm files") - #qt5_add_translation(QM_FILES ${TS_FILES}) - #endif() + message("** parse sources for new translations") + qt5_create_translation(QM_FILES ${SOURCE_FILES} ${TS_FILES}) SET( bmsapp_DESKTOP ${ROOTDIR}/bmsapp.desktop