Skip to content
Snippets Groups Projects
Commit 28d3f9bf authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'fix/parmetis' into 'develop'

Fix configuration when parmetis is not found

See merge request !25
parents d48b9ee9 d32de898
No related branches found
No related tags found
1 merge request!25Fix configuration when parmetis is not found
......@@ -7,16 +7,16 @@ if (EXISTS "${PARMETIS_INCLUDE_DIR}/parmetis.h")
message("-- Found parmetis.h in ${PARMETIS_INCLUDE_DIR}")
find_library(LIB_PARMETIS parmetis)
if("${LIB_PARMETIS}" STREQUAL "LIB_PARMETIS-NOTFOUND")
message(FATAL_ERROR "Could not find parmetis library")
message(WARNING "Could not find parmetis library")
endif()
find_library(LIB_METIS metis)
if("${LIB_PARMETIS}" STREQUAL "LIB_METIS-NOTFOUND")
message(FATAL_ERROR "Could not find metis library")
message(WARNING "Could not find metis library")
endif()
set(PARMETIS_LIBRARIES ${LIB_PARMETIS} ${LIB_METIS})
message("-- Found parmetis/metis libraries ${PARMETIS_LIBRARIES}")
else()
message(FATAL_ERROR "Could not find parmetis.h")
message(WARNING "Could not find parmetis.h")
endif()
mark_as_advanced(PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment