summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-06-15 14:18:24 +0200
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-06-19 13:56:56 +0000
commit6b7047f7d94c6d6f5f6e813a27a8bf269cb6f3f8 (patch)
treef5ace48b9c404e2d3b2e903234db37a162977f01
parentdc016c3282e0b1e5f3a59dea271e3e52f9945d91 (diff)
Fix cmake install TARGETS statement in todolist demo
The TARGETS statement was given ${CMAKE_PROJECT_NAME} as an argument. That works in a stand alone build of the demo. If the demo is compiled as part of a toplevel or qtdoc build, the project name will be "Qt". That doesn't exist and breaks the build. This patch changes the argument to "ToDoListApp". Fixes: QTBUG-114592 Change-Id: Ic5311718cbb6250175355e60b0b6eebaf1165e8b Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit 5c2d5701b5fc2ee5a6ad931a06a89b97c08f173a) Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--examples/demos/todolist/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demos/todolist/CMakeLists.txt b/examples/demos/todolist/CMakeLists.txt
index 65ccb6717..3d2594f24 100644
--- a/examples/demos/todolist/CMakeLists.txt
+++ b/examples/demos/todolist/CMakeLists.txt
@@ -33,7 +33,7 @@ target_link_libraries(ToDoListApp PRIVATE
Qt6::QuickControls2
)
-install(TARGETS ${CMAKE_PROJECT_NAME}
+install(TARGETS ToDoListApp
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"