Skip to content
Snippets Groups Projects
Commit ce36a340 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Steffen Müthing
Browse files

[SuiteSparse] Print errorfor missing AMD in HCOLMOD check


Adjust code to reflect comment.

(cherry picked from commit 82f31309)
Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent 1818eb62
No related branches found
No related tags found
No related merge requests found
......@@ -115,13 +115,11 @@ endforeach()
# resolve inter-modular dependencies
# CHOLMOD requires AMD, COLAMD; CAMD and CCOLAMD is optional
if( CHOLMOD_LIBRARY )
if( NOT AMD_LIBRARY )
if( NOT COLAMD_LIBRARY )
message(WARNING "CHOLMOD requires AMD and COLAMD which was not found, skipping the test.")
return()
endif()
# CHOLMOD requires AMD, COLAMD; CAMD and CCOLAMD are optional
if(CHOLMOD_LIBRARY)
if(NOT (AMD_LIBRARY AND COLAMD_LIBRARY))
message(WARNING "CHOLMOD requires AMD and COLAMD which were not found, skipping the test.")
return()
endif()
list( APPEND CHOLMOD_LIBRARY ${AMD_LIBRARY} ${COLAMD_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