| 1 |
Fromscip-debian debian cura-engine 1:5.0.0-6 cura-engine/patches/`0008-fix-USE_SYSTEM_LIBS-for-linking.patch`#From.: Sebastian Kuzminsky <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian cura-engine 1:5.0.0-6 cura-engine/patches/`0008-fix-USE_SYSTEM_LIBS-for-linking.patch`#Date.: Thu, 19 May 2022 12:42:03 -0600 |
| 3 |
Subjectscip-debian debian cura-engine 1:5.0.0-6 cura-engine/patches/`0008-fix-USE_SYSTEM_LIBS-for-linking.patch`#Subject.: fix USE_SYSTEM_LIBS for linking |
| 4 |
|
| 5 |
--- |
| 6 |
CMakeLists.txt | 6 +++++- |
| 7 |
1 file changed, 5 insertions(+), 1 deletion(-) |
| 8 |
|
| 9 |
diff --git a/CMakeLists.txtscip-debian debian cura-engine 1:5.0.0-6 cura-engine/upstream/`CMakeLists.txt`: b/CMakeLists.txtscip-debian debian cura-engine 1:5.0.0-6 cura-engine/upstream/`CMakeLists.txt`: |
| 10 |
index 233d8e3..a55ab49 100644 |
| 11 |
--- a/CMakeLists.txt |
| 12 |
+++ b/CMakeLists.txt |
| 13 |
@@ -298,7 +298,11 @@ if (NOT TARGET Boost::boost) # Workaround for different namespace in non Conan |
| 14 |
add_library(boost::boost ALIAS Boost::boost) |
| 15 |
endif () |
| 16 |
|
| 17 |
|
| 18 |
+if (USE_SYSTEM_LIBS) |
| 19 |
+ target_link_libraries(_CuraEngine PRIVATE ${Polyclipping_LIBRARIES}) |
| 20 |
+else() |
| 21 |
+ target_link_libraries(_CuraEngine PRIVATE clipper::clipper rapidjson::rapidjson stb::stb boost::boost) |
| 22 |
+endif() |
| 23 |
|
| 24 |
if (WIN32) |
| 25 |
message(STATUS "Using windres") |