Skip to content
Snippets Groups Projects
Commit b3295a9f authored by Lars Bilke's avatar Lars Bilke
Browse files

Fixed cvode linking when cvode was built with klu-option.

This is the case on macOS sundials homebrew-package.
parent 2f4815a1
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,8 @@ find_library(CVODE_NVECSERIAL ...@@ -32,6 +32,8 @@ find_library(CVODE_NVECSERIAL
PATH_SUFFIXES lib Lib PATH_SUFFIXES lib Lib
) )
find_library(CVODE_KLU klu)
find_package_handle_standard_args(CVODE DEFAULT_MSG find_package_handle_standard_args(CVODE DEFAULT_MSG
CVODE_LIBRARY CVODE_LIBRARY
CVODE_NVECSERIAL CVODE_NVECSERIAL
...@@ -39,7 +41,9 @@ find_package_handle_standard_args(CVODE DEFAULT_MSG ...@@ -39,7 +41,9 @@ find_package_handle_standard_args(CVODE DEFAULT_MSG
) )
if(CVODE_FOUND) if(CVODE_FOUND)
set(CVODE_LIBRARIES ${CVODE_LIBRARY} ${CVODE_NVECSERIAL}) set(CVODE_LIBRARIES
${CVODE_LIBRARY} ${CVODE_NVECSERIAL} ${CVODE_KLU}
CACHE INTERNAL "")
endif() endif()
mark_as_advanced(CVODE_INCLUDE_DIRS CVODE_LIBRARY CVODE_NVECSERIAL) mark_as_advanced(CVODE_INCLUDE_DIRS CVODE_LIBRARY CVODE_NVECSERIAL)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment