Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.0 Beta2
-
a2683113e2c4f204687daaca4f10b28c6e1a98a3 (qt/qt5/6.0)
Description
Qt 6's configure script does support the -skip argument, but it seems many combinations are not covered:
configure -skip qtdeclarative [...] CMake Error at qtquickcontrols2/CMakeLists.txt:18 (find_package): Found package configuration file: C:/dev/qt/dev/cmake-test/qtbase/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Qml" config file at "" Failed to find Qt component "Quick" config file at ""
There is logic in qt5/CMakeLists.txt that seems to try to handle unmet dependencies (see logic after # Check for unmet dependencies. Anyhow, for some reason that is not triggered here. Also the logic seems to try to bail out for unmet dependencies, while in Qt 5 leaf-modules that depend on disabled modules where just skipped.