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

qt6: cmake: add export QT_SELECT=qt6 #12393

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented Feb 5, 2025

If you have multiple versions of Qt installed you need to set this, cmake will find Qt5 first.

@DonLakeFlyer
Copy link
Contributor

But what version of Qt6 does that pick? For me I need CMAKE_PREFIX_PATH to point right to the one I want to use.

@HTRamsey
Copy link
Collaborator

HTRamsey commented Feb 5, 2025

We need to add to the instructions that you should use /Qt/6.8.2/gcc_64/bin/qt-cmake (adjust based on your path & platform)

@DonLakeFlyer
Copy link
Contributor

Yeah, that probably makes sense as the best option

@dakejahl
Copy link
Contributor Author

dakejahl commented Feb 7, 2025

so what's the best way to do this? Can we add the default path to cmake and error if it doesn't find the exact version we want? And a user could override with an env var if they want to specify a different version

@DonLakeFlyer
Copy link
Contributor

If you want to use cmake directly instead of say just using Qt Creator which will get you the right thing, then I think you are kinda on your own to set up an alias to qt-cmake using whatever OS mechanism you have available. Gonna be too long winded to explain something for every OS. But I'd hope if you want to go this route you kinda know what you are doing already and can handle that. Otherwise you should be using Qt Creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants