Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
6847a19e3e (qt/qtbase/dev)
Description
Usually in cmake projects, find_package calls are always re-executed upon each configuration regardless if the package was previously found or not.
If a package was previously found, its Config file needs to be re-run to ensure targets are made available.
If the package was not previously found, CMake will try finding it again during reconfiguration.
Usually this allows installing a missing package via a package manager and then just rerunning cmake to pick it up.
But if you don't intend to install missing packages, the find_package calls cause extra configure time overhead, especially on systems with slow file system access.
It would be nice if all missing packages that Qt looks for on the first configuration, are not searched for on subsequent reconfigurations, thus reducing reconfiguration time.
Attachments
Issue Links
- relates to
-
QTBUG-107248 Investigate calling qt_find_package and qt_config_compile_test only for specific platforms based on feature conditions
- Reported
For Gerrit Dashboard: QTBUG-107251 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
435326,7 | CMake: Reconfigure faster by not looking for missing packages | dev | qt/qtbase | Status: MERGED | +2 | 0 |