Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107251

Don't rerun qt_find_package on reconfiguration that were missing on first configuration

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 6.5.0 Beta1
    • None
    • Build System: CMake
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes