Skip to content
Snippets Groups Projects
Commit 5efaf9f4 authored by Steffen Müthing's avatar Steffen Müthing Committed by Steffen Müthing
Browse files

Merge branch 'bug/cmake-findsuitesparse' into 'master'


FindSuiteSparse.cmake: Correct `HAVE_SUITESPARSE_${_component}`

See merge request !47
(cherry picked from commit 1b545b39)

Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent 85d37ca3
No related branches found
No related tags found
No related merge requests found
......@@ -164,8 +164,12 @@ endif()
# check wether everything was found
foreach(_component ${SUITESPARSE_COMPONENTS})
# variable used for component handling
set(SuiteSparse_${_component}_FOUND (${_component}_LIBRARY AND ${_component}_INCLUDE_DIR))
set(HAVE_SUITESPARSE_${_component} SuiteSparse_${_component}_FOUND)
if(${_component}_LIBRARY AND ${_component}_INCLUDE_DIR)
set(SuiteSparse_${_component}_FOUND TRUE)
else()
set(SuiteSparse_${_component}_FOUND FALSE)
endif()
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}")
......
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