Skip to content

Commit

Permalink
add a clear message that parmetis requires mpi (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Jul 21, 2023
1 parent c381cc0 commit 50a5dbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmake/Setup3rdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ endif()
# Setup Parmetis if available
################################
if(PARMETIS_DIR)
if(NOT ENABLE_MPI)
message(FATAL_ERROR "PARMETIS_DIR is set while ENABLE_MPI is OFF. Parmetis support requires MPI.")
endif()
include(cmake/thirdparty/SetupParmetis.cmake)
include_directories(${PARMETIS_INCLUDE_DIR})
# if we don't find it, throw a fatal error
Expand Down

0 comments on commit 50a5dbe

Please sign in to comment.