Bail out if none of the required components are found
The way the test was written earlier, it would accept if it found components that were transitively pulled in even if the originally requested component was not!
This commit is contained in:
parent
ceeba95ba7
commit
172e9b3e33
@ -132,7 +132,7 @@ endif (UMFPACK_LIBRARY)
|
||||
# were satisfied; create a list of ALL modules (specified) that was found
|
||||
# (to be included in one swoop in CMakeLists.txt)
|
||||
set (SuiteSparse_FOUND TRUE)
|
||||
foreach (module IN LISTS SuiteSparse_MODULES)
|
||||
foreach (module IN LISTS SuiteSparse_FIND_COMPONENTS)
|
||||
string (TOUPPER ${module} MODULE)
|
||||
set (SuiteSparse_${MODULE}_FOUND TRUE)
|
||||
foreach (file IN LISTS ${MODULE}_INCLUDE_DIRS ${MODULE}_LIBRARIES)
|
||||
|
Loading…
Reference in New Issue
Block a user