summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amir.abdol@qt.io>2023-06-13 12:55:42 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2023-06-19 08:42:46 +0000
commitdc016c3282e0b1e5f3a59dea271e3e52f9945d91 (patch)
treedc0d25c62b5414c3a828e12447b5c394cea2ce3d
parent8a03de58a46b8d675eef1ae73350b60cf3d331d5 (diff)
Use the target name explicitly instead of ${CMAKE_PROJECT_NAME}
Otherwise, this can break the top-level build with: `install TARGETS given target "Qt" which does not exist.` Change-Id: I503319fed3c5d5b49fda38a5c6d55db270793b8f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 6c889caceb01df53a61ba1884dae639a33749573)
-rw-r--r--examples/demos/todolist/qmlcomponents.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demos/todolist/qmlcomponents.cmake b/examples/demos/todolist/qmlcomponents.cmake
index 8c4b8a3df..49a09d65c 100644
--- a/examples/demos/todolist/qmlcomponents.cmake
+++ b/examples/demos/todolist/qmlcomponents.cmake
@@ -15,7 +15,7 @@ FetchContent_Declare(
FetchContent_GetProperties(ds)
FetchContent_Populate(ds)
-target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
+target_link_libraries(ToDoListApp PRIVATE
QuickStudioComponentsplugin
QuickStudioEffectsplugin
QuickStudioApplicationplugin
@@ -28,6 +28,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
add_subdirectory(${ds_SOURCE_DIR} ${ds_BINARY_DIR})
-target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE
+target_compile_definitions(ToDoListApp PRIVATE
BULD_QDS_COMPONENTS=true
)