I am trying to upgrade from sundials 6.6 to 7.0, and get the following error when building a project (call it target) that links to sundials and the KLU linear solver using cmake:
...path/to/env/include/sunlinsol/sunlinsol_klu.h:34:10: fatal error: 'klu.h' file not found
34 | #include <klu.h>
(CMAKE_INCLUDE_PATH is path/to/env/include). I understand suitesparse update changed where the headers are installed; adding ${CMAKE_INCLUDE_PATH}/suitesparse to the target_include_directories could serve as a workaround, but this is not ideal, as this is not a direct dependency of target.
I may be missing something but, is this perhaps an issue with the install?
Comment:
I am trying to upgrade from sundials 6.6 to 7.0, and get the following error when building a project (call it
target
) that links tosundials
and the KLU linear solver using cmake:The relevant parts of my
CMakeLists.txt
are(
CMAKE_INCLUDE_PATH
ispath/to/env/include
). I understandsuitesparse
update changed where the headers are installed; adding${CMAKE_INCLUDE_PATH}/suitesparse
to thetarget_include_directories
could serve as a workaround, but this is not ideal, as this is not a direct dependency oftarget
.I may be missing something but, is this perhaps an issue with the install?