summaryrefslogtreecommitdiff
path: root/math/sundials/files/patch-src_cvodes_CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2017-12-27 07:47:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2017-12-27 07:47:30 +0000
commit2a3f43cb6b9c094d6cfecae772117a63620777f7 (patch)
treeeccb4ef6314e0cb5c8d4a822f80fa56dc88164da /math/sundials/files/patch-src_cvodes_CMakeLists.txt
parentDisable the extra flag "-march=native" on arm to fix builds. (diff)
New port: math/sundials: SUite of Nonlinear and DIfferential/ALgebraic Equation Solvers
This port was originally created by Pedro Giffuni. He offered me to take over it. I updated it to 3.1.0, added many options, etc. The option FCMIX is broken upstream, so it is not present in the port. Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D13647
Diffstat (limited to 'math/sundials/files/patch-src_cvodes_CMakeLists.txt')
-rw-r--r--math/sundials/files/patch-src_cvodes_CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/sundials/files/patch-src_cvodes_CMakeLists.txt b/math/sundials/files/patch-src_cvodes_CMakeLists.txt
new file mode 100644
index 000000000000..9cc862d4f65d
--- /dev/null
+++ b/math/sundials/files/patch-src_cvodes_CMakeLists.txt
@@ -0,0 +1,21 @@
+--- src/cvodes/CMakeLists.txt.orig 2017-11-07 23:48:01 UTC
++++ src/cvodes/CMakeLists.txt
+@@ -116,6 +116,18 @@ IF(BUILD_SHARED_LIBS)
+ TARGET_LINK_LIBRARIES(sundials_cvodes_shared m)
+ ENDIF()
+
++ IF(UNIX)
++ TARGET_LINK_LIBRARIES(sundials_cvodes_shared m)
++ ENDIF()
++
++ IF(LAPACK_FOUND)
++ TARGET_LINK_LIBRARIES(sundials_cvodes_shared ${LAPACK_LIBRARIES})
++ ENDIF()
++
++ IF(KLU_FOUND)
++ TARGET_LINK_LIBRARIES(sundials_cvodes_shared ${KLU_LIBRARIES})
++ ENDIF()
++
+ # Set the library name and make sure it is not deleted
+ SET_TARGET_PROPERTIES(sundials_cvodes_shared
+ PROPERTIES OUTPUT_NAME sundials_cvodes CLEAN_DIRECT_OUTPUT 1)