From 75b992bfd183919560c3ca6630b9aa66e3dd44f2 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 30 Oct 2020 22:45:56 +0100 Subject: [PATCH] Don't install translations if built-in anyways --- CMakeLists.txt | 2 +- cmake/modules/QtConfig.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0798667..5dcf338 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models") set(META_VERSION_MAJOR 6) set(META_VERSION_MINOR 3) -set(META_VERSION_PATCH 0) +set(META_VERSION_PATCH 1) set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}) project(${META_PROJECT_NAME}) diff --git a/cmake/modules/QtConfig.cmake b/cmake/modules/QtConfig.cmake index a2f30d3..ee66960 100644 --- a/cmake/modules/QtConfig.cmake +++ b/cmake/modules/QtConfig.cmake @@ -312,7 +312,7 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES) endif () # add install target for translations - if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS) + if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS AND NOT BUILTIN_TRANSLATIONS) install( FILES ${QM_FILES} DESTINATION "${META_DATA_DIR}/translations"