File: 0005-fix-USE_SYSTEM_LIBS-for-protobuf.patch

package info (click to toggle)
cura-engine 1%3A5.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,860 kB
  • sloc: cpp: 52,613; python: 322; makefile: 10; sh: 2
file content (25 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Sebastian Kuzminsky <sebastiankuzminsky@desktopmetal.com>
Date: Thu, 19 May 2022 12:35:39 -0600
Subject: fix USE_SYSTEM_LIBS for protobuf

---
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1788074..2ee6c68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -254,7 +254,11 @@ if(NOT APPLE AND ENABLE_OPENMP)
 endif()
 
 if(ENABLE_ARCUS)
-    target_link_libraries(_CuraEngine PRIVATE Arcus protobuf::protobuf)
+    if (USE_SYSTEM_LIBS)
+        target_link_libraries(_CuraEngine PRIVATE Arcus ${PROTOBUF_LIBRARY})
+    else()
+        target_link_libraries(_CuraEngine PRIVATE Arcus protobuf::protobuf)
+    endif()
 endif()
 
 find_package(clipper 6.4.2 QUIET)