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

Move Qt::FooPrivate targets into separate CMake packages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:

      Description

      Some discussion at https://codereview.qt-project.org/c/qt/qtbase/+/318453/2/src/entrypoint/CMakeLists.txt#12

      We had a discussion a few months ago, that qmake splits qt modules across 2 pri files: qt_lib_foo.pri and qt_lib_foo_private.pri.

      In CMake we do that distinction on the target level, but not on the package level. Both Qt::Foo and Qt::FooPrivate become available when doing find_package(Qt6Foo).

      Instead we should investigate trying to split the Qt::FooPrivate target into its own Qt6FooPrivate package backed by Qt6FooPrivateConfig.cmake.

      This would more cleanly separate the availability of the targets, ensuring that users really acknowledge into finding and using the private packages (and targets)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes