diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-07-23 10:08:00 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-23 09:11:52 +0000 |
commit | d8ff7b5bbe583624d0bbd81183e0ae5cff6c81b6 (patch) | |
tree | eee06f60432a4366abf770c8571e2819d1e7b58a /examples/serialbus/modbus/custom | |
parent | 84dd0c9dc17ec0a10b6746f641f7677ba3b3d11f (diff) |
CMake: Explicitly link against the built QtNetwork library
This is to ensure that the pre-existing QtNetwork library from the
b2qt SDK sysroot in the CI is not picked up.
This is likely a consequence of CMake not adding an -rpath-link flag
when linking. See QTBUG-86533 for details.
Task-number: QTBUG-86533
Change-Id: Id05d49812f957c8a6c12c03f5ff633015bd63103
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 4a2828a3d30fa1e4760a6778b8b58569caefb632)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/serialbus/modbus/custom')
-rw-r--r-- | examples/serialbus/modbus/custom/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/serialbus/modbus/custom/CMakeLists.txt b/examples/serialbus/modbus/custom/CMakeLists.txt index cfe398f..010ac0e 100644 --- a/examples/serialbus/modbus/custom/CMakeLists.txt +++ b/examples/serialbus/modbus/custom/CMakeLists.txt @@ -34,6 +34,7 @@ set_target_properties(customcommand PROPERTIES target_link_libraries(customcommand PRIVATE Qt::Core Qt::Gui + Qt::Network Qt::SerialBus Qt::Widgets ) |