blob: 93a9caa23adf7b847a6f227b2482060346b1f352 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- src/arkode/CMakeLists.txt.orig 2017-11-07 23:47:45 UTC
+++ src/arkode/CMakeLists.txt
@@ -112,6 +112,19 @@ IF(BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES(sundials_arkode_shared m)
ENDIF()
+
+ IF(UNIX)
+ TARGET_LINK_LIBRARIES(sundials_arkode_shared m)
+ ENDIF()
+
+ IF(LAPACK_FOUND)
+ TARGET_LINK_LIBRARIES(sundials_arkode_shared ${LAPACK_LIBRARIES})
+ ENDIF()
+
+ IF(KLU_FOUND)
+ TARGET_LINK_LIBRARIES(sundials_arkode_shared ${KLU_LIBRARIES})
+ ENDIF ()
+
# Set the library name and make sure it is not deleted
SET_TARGET_PROPERTIES(sundials_arkode_shared
PROPERTIES OUTPUT_NAME sundials_arkode CLEAN_DIRECT_OUTPUT 1)
|