|
| 1 | +From ea83157eed37ff97ab275a5d14c971f0a5a70595 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Martin Joerg < [email protected]> |
| 3 | +Date: Thu, 23 Oct 2025 08:18:33 +0000 |
| 4 | +Subject: [PATCH] QuotientConfig.cmake: add missing find_dependency commands |
| 5 | + |
| 6 | +This adds all dependencies configured in CMakeLists.txt. |
| 7 | + |
| 8 | +In particular, for Qt >= 6.10, this avoids downstreams having to manually configure the component |
| 9 | +CorePrivate of dependency Qt6. Otherwise, this might result in the following message: |
| 10 | + |
| 11 | + The link interface of target "QuotientQt6" contains: |
| 12 | + |
| 13 | + Qt6::CorePrivate |
| 14 | + |
| 15 | + but the target was not found. Possible reasons include: |
| 16 | + |
| 17 | + * There is a typo in the target name. |
| 18 | + * A find_package call is missing for an IMPORTED target. |
| 19 | + * An ALIAS target is missing. |
| 20 | + |
| 21 | +See also 861f520092c9c915356234e85c0744097a155822, https://bugreports.qt.io/browse/QTBUG-87776. |
| 22 | +--- |
| 23 | + cmake/QuotientConfig.cmake.in | 4 ++++ |
| 24 | + 1 file changed, 4 insertions(+) |
| 25 | + |
| 26 | +diff --git a/cmake/QuotientConfig.cmake.in b/cmake/QuotientConfig.cmake.in |
| 27 | +index 6f92d54ce..ac219576c 100644 |
| 28 | +--- a/cmake/QuotientConfig.cmake.in |
| 29 | ++++ b/cmake/QuotientConfig.cmake.in |
| 30 | +@@ -1,5 +1,9 @@ |
| 31 | + include(CMakeFindDependencyMacro) |
| 32 | + |
| 33 | ++find_dependency(@Qt@Core) |
| 34 | ++if (@Qt@Core_VERSION VERSION_GREATER_EQUAL 6.10) |
| 35 | ++ find_dependency(@Qt@CorePrivate) |
| 36 | ++endif() |
| 37 | + find_dependency(@Qt@Gui) |
| 38 | + find_dependency(@Qt@Network) |
| 39 | + find_dependency(@Qt@Keychain) |
0 commit comments