Don't install translations if built-in anyways

This commit is contained in:
Martchus 2020-10-30 22:45:56 +01:00
parent 4f06492306
commit 75b992bfd1
2 changed files with 2 additions and 2 deletions

View File

@ -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") "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_MAJOR 6)
set(META_VERSION_MINOR 3) 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}) set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
project(${META_PROJECT_NAME}) project(${META_PROJECT_NAME})

View File

@ -312,7 +312,7 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
endif () endif ()
# add install target for translations # 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( install(
FILES ${QM_FILES} FILES ${QM_FILES}
DESTINATION "${META_DATA_DIR}/translations" DESTINATION "${META_DATA_DIR}/translations"