summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-12-20 14:54:58 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2021-12-20 19:03:25 +0100
commitc11447185bcfd33d9edbc9508d6de066c62c3e60 (patch)
tree709eedccaca5b39367f8093ccdbc8266faccb826
parent325c68ffd5aaba2596f19fef14009eb7d37d66fe (diff)
Move Qt::Concurrent to the PUBLIC link section
This is the workaround of QTBUG-86533. The Qt6::Concurrent target needs to be added to the IMPORTED_LINK_DEPENDENT_LIBRARIES_RELWITHDEBINFO property of the exported Qt::3DCore target. This doesn't happen bacause Qt6::Concurrent is INTERFACE_LIBK_LIBRARY propagted by versionless Qt::Concurrent target. Qt::3DCore links Qt::Concurrent only and due to the issue in CMake, CMake skips adding Qt6::Concurrent to the IMPORTED_LINK_DEPENDENT_LIBRARIES_RELWITHDEBINFO list. The workaround propagates the Qt::Concurrent to the Qt::3DCore consumers explixitly as the interface link library. Pick-to: 6.3 dev Change-Id: I5ecbc1c9c695bd2ce6022f123ff1496cce3ff32a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/core/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 581228734..d17d55095 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -84,10 +84,10 @@ qt_internal_add_module(3DCore
services
transforms
LIBRARIES
- Qt::Concurrent
Qt::CorePrivate
Qt::GuiPrivate
PUBLIC_LIBRARIES
+ Qt::Concurrent # TODO: QTBUG-86533 workaround, Qt::Concurrent should be linked privately.
Qt::Core
Qt::Gui
Qt::Network