Skip to content
Snippets Groups Projects
Commit 472a0f40 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

`set()` cannot evaluate expressions

The construct `set(variable (x and y))` will assign the list `"x;and;y"`
to `variable` instead of evaluating the expression.
parent 9ac86b00
No related branches found
No related tags found
1 merge request!47FindSuiteSparse.cmake: Correct `HAVE_SUITESPARSE_${_component}`
......@@ -164,7 +164,11 @@ 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))
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}")
......
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