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

Move Qt::FooPrivate targets into separate CMake packages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.0
    • Build System: CMake

    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

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes