Mercurial > mxe-octave
annotate src/sundials-ida-1.patch @ 4673:010dc6a420ff
stable-octave: bump version number
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Apr 2018 21:57:06 -0400 |
parents | 8b731cde3aaa |
children |
rev | line source |
---|---|
4462
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
1 Add missing dependency on KLU when building IDA shared library. |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
2 |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
3 Based on a patch in the Debian sundials package by Dima Kogan. |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
4 |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
5 https://anonscm.debian.org/cgit/debian-science/packages/sundials.git/tree/debian/patches/0001-Added-missing-linkages- |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
6 |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
7 diff --git a/src/ida/CMakeLists.txt b/src/ida/CMakeLists.txt |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
8 --- a/src/ida/CMakeLists.txt |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
9 +++ b/src/ida/CMakeLists.txt |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
10 @@ -135,6 +135,10 @@ IF(BUILD_SHARED_LIBS) |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
11 ADD_LIBRARY(sundials_ida_shared SHARED |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
12 ${ida_SOURCES} ${ida_BL_SOURCES} ${shared_SOURCES}) |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
13 |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
14 + IF(KLU_FOUND) |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
15 + TARGET_LINK_LIBRARIES(sundials_ida_shared -lklu) |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
16 + ENDIF(KLU_FOUND) |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
17 + |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
18 # Set the library name and make sure it is not deleted |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
19 SET_TARGET_PROPERTIES(sundials_ida_shared |
8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
20 PROPERTIES OUTPUT_NAME sundials_ida CLEAN_DIRECT_OUTPUT 1) |