diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2025-01-27 10:02:23 +0100 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2025-01-28 21:09:54 +0000 |
| commit | 61c6e90401e375a6d6e721c5f7c25af96f9e46ec (patch) | |
| tree | 0e0d2ebab1c0fed0940f684c83b314cec98b6b3a /cmake/QtModuleConfig.cmake.in | |
| parent | befce757faa0b0abd2c1f4ec408c1a0932794b0c (diff) | |
CMake: Add a way to mark modules as "load the private module too"
Add FIND_PRIVATE_MODULE argument to qt_internal_add_module. If this
argument is set for Qt6Foo, then find_package(Qt6Foo) will also
find_package(Qt6FooPrivate). This should only be necessary in
exceptional cases like Qt6Qml where Qt6QmlPrivate is used
unconditionally.
Task-number: QTBUG-87776
Change-Id: I8d6fbd0624c0008fc42294ff2d2ed36848963508
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'cmake/QtModuleConfig.cmake.in')
| -rw-r--r-- | cmake/QtModuleConfig.cmake.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtModuleConfig.cmake.in b/cmake/QtModuleConfig.cmake.in index cd6c3427a37..e9fee8a0d5a 100644 --- a/cmake/QtModuleConfig.cmake.in +++ b/cmake/QtModuleConfig.cmake.in @@ -32,7 +32,7 @@ if (NOT QT_NO_CREATE_TARGETS AND @INSTALL_CMAKE_NAMESPACE@@target@_FOUND) endif() # Find the private module counterpart. -set(__qt_@target@_always_load_private_module OFF) +set(__qt_@target@_always_load_private_module @always_load_private_module@) include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@-build.cmake" OPTIONAL) if (@INSTALL_CMAKE_NAMESPACE@@target@_FOUND AND NOT @INSTALL_CMAKE_NAMESPACE@@target_private@_FOUND |
