Make warning about missing Qt translations dependent on BUILTIN_TRANSLATIONS_OF_QT

This commit is contained in:
Martchus 2023-07-03 21:58:18 +02:00
parent 0e9637faa2
commit a6a64aa429
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ if (NOT QT_TRANSLATIONS_FOUND)
endif ()
# emit warning if no Qt translations found but built-in translations are enabled
if (BUILTIN_TRANSLATIONS AND NOT QT_TRANSLATION_FILES)
if (BUILTIN_TRANSLATIONS_OF_QT AND NOT QT_TRANSLATION_FILES)
message(
WARNING
"Unable to find translations of Qt itself so Qt's translation files will not be built-in. Be sure Qt translations (https://code.qt.io/cgit/qt/qttranslations.git) are installed. Was looking under: ${QT_TRANSLATION_SEARCH_PATHS}"