diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-09-23 16:55:11 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-09-30 22:24:01 +0200 |
commit | b04c0790687bd6bcc5165d94ee2b89a934fad491 (patch) | |
tree | 44a2510cdf1a710159e552b30bc518a03c2ac970 | |
parent | 54774a5203ef45fe5b47b09f5ee1d57f07c9ecef (diff) |
CMake: Fix textballoon example when using a static Qt
Don't pre-create a qml module backing library, don't link to it
directly and instead rely on regular qml plugin loading.
This avoids undefined linker errors.
Amends 79cae5f6522bc259caa27b98031bfe84ef936744
Fixes: QTBUG-96805
Change-Id: I77acd086257e27e1933e9b36d7f0212765afceb3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit d73f98b1b560ce9776250f0a81c37682de0c8190)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/quick/customitems/painteditem/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/quick/customitems/painteditem/TextBalloon/CMakeLists.txt | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/quick/customitems/painteditem/CMakeLists.txt b/examples/quick/customitems/painteditem/CMakeLists.txt index 63becfa53d..db2a02b25a 100644 --- a/examples/quick/customitems/painteditem/CMakeLists.txt +++ b/examples/quick/customitems/painteditem/CMakeLists.txt @@ -28,8 +28,8 @@ target_link_libraries(painteditemexample PRIVATE Qt::Gui Qt::Qml Qt::Quick - qmltextballoon ) +add_dependencies(painteditemexample qmltextballoon) install(TARGETS painteditemexample RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" diff --git a/examples/quick/customitems/painteditem/TextBalloon/CMakeLists.txt b/examples/quick/customitems/painteditem/TextBalloon/CMakeLists.txt index d651c7de8b..eb0ef1fd87 100644 --- a/examples/quick/customitems/painteditem/TextBalloon/CMakeLists.txt +++ b/examples/quick/customitems/painteditem/TextBalloon/CMakeLists.txt @@ -1,6 +1,5 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick/customitems/painteditem/TextBalloon") -qt_add_library(qmltextballoon) qt_add_qml_module(qmltextballoon VERSION 1.0 URI "TextBalloon" |