Skip to content

Commit

Permalink
Merge pull request #11880 from fwcd/fix-qt6-translations-path
Browse files Browse the repository at this point in the history
CMakeLists: Fix `QT_TRANSLATION_FILE` path for Qt 6
  • Loading branch information
daschuer authored Aug 28, 2023
2 parents c973075 + 0eed660 commit 252ece3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2646,7 +2646,7 @@ if(APPLE OR WIN32)
# qt_de.qm is just one arbitrary file in the directory that needs to be located;
# there is no particular reason to look for this file versus any other one in the directory.
if(QT6)
find_file(QT_TRANSLATION_FILE qt_de.qm PATHS "${Qt6_DIR}/../../../translations" "${Qt6_DIR}/../../qt5/translations" REQUIRED NO_DEFAULT_PATH)
find_file(QT_TRANSLATION_FILE qt_de.qm PATHS "${Qt6_DIR}/../../translations/Qt6" REQUIRED NO_DEFAULT_PATH)
else()
find_file(QT_TRANSLATION_FILE qt_de.qm PATHS "${Qt5_DIR}/../../../translations" "${Qt5_DIR}/../../qt5/translations" REQUIRED NO_DEFAULT_PATH)
endif()
Expand Down

0 comments on commit 252ece3

Please sign in to comment.