File: link-z.patch

package info (click to toggle)
lib3mf 1.8.1%2Bds-6
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 12,652 kB
  • sloc: cpp: 34,988; ansic: 4,255; sh: 109; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: lib3mf-1.8.1+ds/CMakeLists.txt
===================================================================
--- lib3mf-1.8.1+ds.orig/CMakeLists.txt
+++ lib3mf-1.8.1+ds/CMakeLists.txt
@@ -113,6 +113,12 @@ if (UNIX OR MINGW)
 			message(FATAL_ERROR "libuuid not found")
 		endif()
 		target_link_libraries(${PROJECT_NAME}_s ${LIBUUID_PATH})
+                if(NOT USE_INCLUDED_LIBZIP)
+		        target_link_libraries(${PROJECT_NAME}_s zip)
+                endif()
+                if(NOT USE_INCLUDED_ZLIB)
+		        target_link_libraries(${PROJECT_NAME}_s z)
+                endif()
 	endif()
 else()
 	# wd4996 masks the deprecated-warning