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

Figure out how to build examples as ExternalProjects in a prefix build setup so it can be used in the CI

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 Beta3
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Technical Risk:
      Normal

      Description

      Currently if Qt is configured as a prefix build, examples are built in-tree as part of the main Qt build, rather than as ExternalProjects.

      We should figure out how to build examples as ExternalProjects in prefix builds so that we can use that in the CI (which uses prefix builds) so that we have more robust build testing of our examples without the pollution of the main Qt build (e.g already found Qt packages).

      Some details at

      https://codereview.qt-project.org/c/qt/qtbase/+/334565/16#message-047a2ba634d2540c2357d7ad913c7f752c793554

      https://codereview.qt-project.org/c/qt/qtbase/+/334565/16#message-9b7be35fc48218cbc73c29d03ff99312b7532477

      From a quick 5 second brainstorming, we might not need to "make install" Qt before the example projects are configured as a big standalone project each spawning an ExternalProject, we might be able to use CMake's export(EXPORT) to create Config and Targets file referencing targets in the build tree, and set the ExternalProject CMAKE_PREFIX_PATH to the location containing those files.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-96232
          # Subject Branch Project Status CR V

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes