view src/sundials-ida-1.patch @ 4662:b77b935415aa

of-windows: update to v1.3.0 * build_packages.m: update windows verseion * dist-files.mk: removed ref to of-windows-1-fixes.patch * src/of-windows.mk: update version, checksum, remove bootstrap call * src/of-windows-1-fixes.patch: removed file
author John Donoghue
date Tue, 17 Apr 2018 12:22:53 -0400
parents 8b731cde3aaa
children
line wrap: on
line source

Add missing dependency on KLU when building IDA shared library.

Based on a patch in the Debian sundials package by Dima Kogan.

https://anonscm.debian.org/cgit/debian-science/packages/sundials.git/tree/debian/patches/0001-Added-missing-linkages-

diff --git a/src/ida/CMakeLists.txt b/src/ida/CMakeLists.txt
--- a/src/ida/CMakeLists.txt
+++ b/src/ida/CMakeLists.txt
@@ -135,6 +135,10 @@ IF(BUILD_SHARED_LIBS)
   ADD_LIBRARY(sundials_ida_shared SHARED
     ${ida_SOURCES}  ${ida_BL_SOURCES} ${shared_SOURCES})
 
+  IF(KLU_FOUND)
+    TARGET_LINK_LIBRARIES(sundials_ida_shared -lklu)
+  ENDIF(KLU_FOUND)
+
   # 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)