Fix CMakeLists.txt of echo plugin example
This patch adds a missing dependency to the echo plugin for shared builds. Since it fixes the last remaining example, it closes the Jira ticket. Fixes: QTBUG-112300 Pick-to: 6.5 Change-Id: Ib1da2d7d5f5d54d7224f1c65a995f3752037e5be Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
5e378e7374
commit
947f4df49c
@ -18,7 +18,11 @@ target_link_libraries(echopluginwindow PRIVATE
|
||||
Qt6::Widgets
|
||||
)
|
||||
|
||||
if(NOT QT6_IS_SHARED_LIBS_BUILD)
|
||||
if(QT6_IS_SHARED_LIBS_BUILD)
|
||||
# Build the shared plugin too when building this example target.
|
||||
add_dependencies(echopluginwindow echoplugin)
|
||||
else()
|
||||
# Link the echoplugin if Qt is built statically.
|
||||
target_link_libraries(echopluginwindow PRIVATE
|
||||
echoplugin
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user