Reinstate and fix cross-compilation patch.
Aurélien COUDERC
1 year, 4 months ago
0 | 0 |
kdesignerplugin (5.101.0-2) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
[ Aurélien COUDERC ]
|
|
3 |
* Reinstate and fix cross-compilation patch.
|
1 | 4 |
|
2 | 5 |
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Fri, 23 Dec 2022 21:05:30 +0100
|
3 | 6 |
|
|
0 |
--- a/src/CMakeLists.txt
|
|
1 |
+++ b/src/CMakeLists.txt
|
|
2 |
@@ -1,7 +1,13 @@ set(kgendesignerplugin_SRCS
|
|
3 |
include(ECMMarkNonGuiExecutable)
|
|
4 |
|
|
5 |
add_executable(kgendesignerplugin)
|
|
6 |
-add_executable(KF5::kgendesignerplugin ALIAS kgendesignerplugin)
|
|
7 |
+if(CMAKE_CROSSCOMPILING)
|
|
8 |
+ find_program(KGENDESIGNERPLUGIN_EXECUTABLE kgendesignerplugin)
|
|
9 |
+ add_executable(KF5::kgendesignerplugin IMPORTED GLOBAL)
|
|
10 |
+ set_target_properties(KF5::kgendesignerplugin PROPERTIES IMPORTED_LOCATION ${KGENDESIGNERPLUGIN_EXECUTABLE})
|
|
11 |
+else()
|
|
12 |
+ add_executable(KF5::kgendesignerplugin ALIAS kgendesignerplugin)
|
|
13 |
+endif()
|
|
14 |
|
|
15 |
ecm_create_qm_loader(kgendesignerplugin kdesignerplugin5_qt)
|
|
16 |
|