Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists: Fix QT_TRANSLATION_FILE path for Qt 6 #11880

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Aug 28, 2023

This fixes the (currently broken) Qt 6 configure for me. It is effectively an adaptation of 06aec1d from the qt6_switch branch, which, however, still uses the Qt5_DIR variable instead of Qt6_DIR (not sure why that worked in the first place).

cc @daschuer

@github-actions github-actions bot added the build label Aug 28, 2023
@@ -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)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: QT_DIR seems to work too, as well as simply passing /translations/Qt6 (which seems to be implicity resolved against CMAKE_PREFIX_PATH, i.e. the vcpkg install root, even if NO_DEFAULT_PATH is passed?!).

For consistency I went with Qt6_DIR though.

@fwcd fwcd mentioned this pull request Aug 28, 2023
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@daschuer daschuer merged commit 252ece3 into mixxxdj:main Aug 28, 2023
11 checks passed
@fwcd fwcd deleted the fix-qt6-translations-path branch August 28, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants