summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-08-13 17:25:52 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-08-25 17:47:46 +0200
commitf2657421c926702604ed08d34d1b7a1449283e27 (patch)
treee15f3b87f3943d3e82f6d25493f90c00c6d2f9cf /cmake
parentd7e89a71bbbb50122b8175886eed7bdf8a2f6c8d (diff)
CMake: Disable global promotion of Threads target using new API
Revert the previous temporary fix, and use the new API for excluding Threads target from global promotion, thus avoid a configuration error. Task-number: QTBUG-85877 Change-Id: If09d84f7deab07ec20581612d3f29143851f6fdb Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindWrapLibClang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/FindWrapLibClang.cmake b/cmake/FindWrapLibClang.cmake
index 91133be06..51afea0f1 100644
--- a/cmake/FindWrapLibClang.cmake
+++ b/cmake/FindWrapLibClang.cmake
@@ -53,6 +53,7 @@ if(TARGET libclang AND TARGET clangHandleCXX AND __wrap_lib_clang_requested_vers
if (NOT TARGET Threads::Threads)
find_package(Threads)
endif()
+ qt_internal_disable_find_package_global_promotion(Threads::Threads)
target_link_libraries(WrapLibClang::WrapLibClang
INTERFACE libclang clangHandleCXX Threads::Threads)