-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfortunatley the advice given by the Qt documentation to support older Qt versions in parallel to Qt6 by using the NAMES parameter of the CMake find_package() command, appears to make it impossible to control which Qt version will be selected if multiple are available. In contrast to what is stated in the documentation, this mechanism will not search for Qt versions in the order given by the NAMES parameter because CMake generates a list of candidate configuration file paths that doesn't reflect this order. In addition, this mechanism appears to make it impossible to ignore specific Qt versions by using the CMAKE_DISABLE_FIND_PACKAGE_<PackageName> definition. It is therefore necessary to build the NAMES list by checking for the CMAKE_DISABLE_FIND_PACKAGE_<PackageName> definitions. This also allows for sufficient control over the selected Qt version to comply with Gentoo's Qt policy.
- Loading branch information
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters