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:
Roland Kaufmann 2013-01-30 22:23:55 +01:00
parent ceeba95ba7
commit 172e9b3e33

View File

@ -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)