Skip to content
Snippets Groups Projects
Commit 65282a53 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Ensure SuiteSparse_*_FOUND and HAVE_SUITESPARSE_* are defined

parent 40046f29
No related branches found
No related tags found
1 merge request!8Feature/fs1702 cmake add suitesparse support rebased
......@@ -164,9 +164,9 @@ endif()
# check wether everything was found
foreach(_component ${SUITESPARSE_COMPONENTS})
# variable used for component handling
if(${_component}_LIBRARY AND ${_component}_INCLUDE_DIR)
set(SuiteSparse_${_component}_FOUND TRUE)
set(HAVE_SUITESPARSE_${_component} TRUE)
set(SuiteSparse_${_component}_FOUND (${_component}_LIBRARY AND ${_component}_INCLUDE_DIR))
set(HAVE_SUITESPARSE_${_component} SuiteSparse_${_component}_FOUND)
if(SuiteSparse_${_component}_FOUND)
list(APPEND SUITESPARSE_INCLUDE_DIR "${${_component}_INCLUDE_DIR}")
list(APPEND SUITESPARSE_LIBRARY "${${_component}_LIBRARY}")
endif()
......
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