From f2657421c926702604ed08d34d1b7a1449283e27 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 13 Aug 2020 17:25:52 +0200 Subject: 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 Reviewed-by: Joerg Bornemann --- configure.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'configure.cmake') diff --git a/configure.cmake b/configure.cmake index 432eeaeaf..d0a64ea0f 100644 --- a/configure.cmake +++ b/configure.cmake @@ -16,9 +16,7 @@ # Presumably because 6.0 ClangConfig.cmake files are not good enough? # In any case explicitly request a minimum version of 8.x for now, otherwise # building with CMake will fail at compilation time. -# FIXME: Temporarily don't provide the targets, to circumevent a global promotion issue -# regarding Threads::Threads. -qt_find_package(WrapLibClang 8) +qt_find_package(WrapLibClang 8 PROVIDED_TARGETS WrapLibClang::WrapLibClang) # special case end if(TARGET WrapLibClang::WrapLibClang) -- cgit v1.2.1