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

Move Qt::FooPrivate targets into separate CMake packages

XMLWordPrintable

    • e7816586b (dev), 2d38af312 (dev), a090ecbdd (6.9), 83cb2ca34 (6.9), ed7bc398d (dev), b8fa115b4 (6.9), ad7b94e16 (dev), e120fb78c (6.9), cfbbb6c95 (dev), 483768fb8 (dev), 7782f2ad1 (6.9), e50ae83c8 (6.9), 61c6e9040 (dev), 1d4c44005 (6.9), e5b3dcfe6 (dev)

      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)

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

            jbornema Joerg Bornemann
            alexandru.croitor Alexandru Croitor
            Votes:
            2 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes