Mercurial > mxe-octave
view src/sundials-27-ida-1.patch @ 5025:0cbc51911dd0
Update sundials to 4.1.0 while keeping version 2.7.0
* src/sundials-27-ida.mk, src/sundials-27-ida-1.patch: Rename files.
* src/sundials-ida.mk: Update version and checksum.
* src/default-octave.mk: Add suitesparse headers to CPPFLAGS.
* stable-octave.mk, release-octave.mk: Depend on older version of Sundials IDA.
* index.html: Add item for Sundials IDA at version 2.7.0.
* dist-files.mk: Add and rename files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 16 Mar 2019 18:23:21 +0100 |
parents | |
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)