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

Fix configuration when parmetis is not found

parent d48b9ee9
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") ...@@ -7,16 +7,16 @@ if (EXISTS "${PARMETIS_INCLUDE_DIR}/parmetis.h")
message("-- Found parmetis.h in ${PARMETIS_INCLUDE_DIR}") message("-- Found parmetis.h in ${PARMETIS_INCLUDE_DIR}")
find_library(LIB_PARMETIS parmetis) find_library(LIB_PARMETIS parmetis)
if("${LIB_PARMETIS}" STREQUAL "LIB_PARMETIS-NOTFOUND") if("${LIB_PARMETIS}" STREQUAL "LIB_PARMETIS-NOTFOUND")
message(FATAL_ERROR "Could not find parmetis library") message(WARNING "Could not find parmetis library")
endif() endif()
find_library(LIB_METIS metis) find_library(LIB_METIS metis)
if("${LIB_PARMETIS}" STREQUAL "LIB_METIS-NOTFOUND") if("${LIB_PARMETIS}" STREQUAL "LIB_METIS-NOTFOUND")
message(FATAL_ERROR "Could not find metis library") message(WARNING "Could not find metis library")
endif() endif()
set(PARMETIS_LIBRARIES ${LIB_PARMETIS} ${LIB_METIS}) set(PARMETIS_LIBRARIES ${LIB_PARMETIS} ${LIB_METIS})
message("-- Found parmetis/metis libraries ${PARMETIS_LIBRARIES}") message("-- Found parmetis/metis libraries ${PARMETIS_LIBRARIES}")
else() else()
message(FATAL_ERROR "Could not find parmetis.h") message(WARNING "Could not find parmetis.h")
endif() endif()
mark_as_advanced(PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES) 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