aboutsummaryrefslogtreecommitdiffstats
path: root/biology/py-libnuml/files/patch-CMakeLists.txt
blob: 6d3a58e0a9a41042dad57e884e698370f20ad22e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- CMakeLists.txt.orig	2025-03-28 09:49:26 UTC
+++ CMakeLists.txt
@@ -62,6 +62,7 @@ ADD_CUSTOM_COMMAND(	
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libnuml_wrap.cpp
     COMMAND "${SWIG_EXECUTABLE}"
     ARGS	-I${CMAKE_CURRENT_SOURCE_DIR}/../swig/
+    			-I${CMAKE_INSTALL_PREFIX}/include
 			-I${CMAKE_SOURCE_DIR}/
 			-I${CMAKE_BINARY_DIR}/
 			-I${CMAKE_BINARY_DIR}/src
@@ -142,9 +143,9 @@ if (PYTHON_USE_DYNAMIC_LOOKUP)
     if (APPLE)
         set_target_properties (binding_python_lib PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
     endif()
-    target_link_libraries(binding_python_lib ${LIBNUML_LIBRARY}-static)
+    target_link_libraries(binding_python_lib ${LIBNUML_LIBRARY})
 else()                                          
-    target_link_libraries(binding_python_lib ${LIBNUML_LIBRARY}-static ${PYTHON_LIBRARIES})
+    target_link_libraries(binding_python_lib ${LIBNUML_LIBRARY} ${PYTHON_LIBRARIES})
 endif()