Skip to content

Commit

Permalink
build MPI: require install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 20, 2024
1 parent bd517c5 commit 45ed03f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ include(ExternalProject)

option(mpich "Build MPICH instead of OpenMPI")

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
message(FATAL_ERROR "Please specify MPI install location:
cmake -DCMAKE_INSTALL_PREFIX=...")
endif()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)

file(GENERATE OUTPUT .gitignore CONTENT "*")
Expand Down

0 comments on commit 45ed03f

Please sign in to comment.