Skip to content
Snippets Groups Projects
Commit 82f31309 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[SuiteSparse] Print errorfor missing AMD in HCOLMOD check

Adjust code to reflect comment.
parent 5c964934
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