diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-12-20 14:54:58 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-12-20 19:03:25 +0100 |
commit | c11447185bcfd33d9edbc9508d6de066c62c3e60 (patch) | |
tree | 709eedccaca5b39367f8093ccdbc8266faccb826 | |
parent | 325c68ffd5aaba2596f19fef14009eb7d37d66fe (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.txt | 2 |
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 |