summaryrefslogtreecommitdiff
path: root/math/sundials/files/patch-src_ida_CMakeLists.txt
blob: b44f0c2b63a6f2e5ae9ff8d1a67956142a4d1bd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/ida/CMakeLists.txt.orig	2017-11-07 23:48:06 UTC
+++ src/ida/CMakeLists.txt
@@ -117,6 +117,18 @@ IF(BUILD_SHARED_LIBS)
     TARGET_LINK_LIBRARIES(sundials_ida_shared m)
   ENDIF()
 
+  IF(UNIX)
+    TARGET_LINK_LIBRARIES(sundials_ida_shared m)
+  ENDIF()
+
+  IF(LAPACK_FOUND)
+    TARGET_LINK_LIBRARIES(sundials_ida_shared ${LAPACK_LIBRARIES})
+  ENDIF()
+
+  IF(KLU_FOUND)
+    TARGET_LINK_LIBRARIES(sundials_ida_shared ${KLU_LIBRARIES})
+  ENDIF()
+
   # Set the library name and make sure it is not deleted
   SET_TARGET_PROPERTIES(sundials_ida_shared
     PROPERTIES OUTPUT_NAME sundials_ida CLEAN_DIRECT_OUTPUT 1)