Skip to content

Commit

Permalink
MPICH: pass options correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 20, 2024
1 parent 9d37321 commit c39224c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/build_mpich.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@
# cmake -Dprefix=~/mpi -P build_mpich.cmake
cmake_minimum_required(VERSION 3.20)

set(args -Dmpich:BOOL=true)

if(prefix)
list(APPEND args -Dprefix=${prefix})
endif()

if(mpi_url)
list(APPEND args -Dmpi_url=${mpi_url})
endif()

if(bindir)
list(APPEND args -Dbindir=${bindir})
endif()

execute_process(COMMAND
${CMAKE_COMMAND} -Dargs=-Dmpich:BOOL=true
${CMAKE_COMMAND} -Dargs=${args}
-P ${CMAKE_CURRENT_LIST_DIR}/build_openmpi.cmake
)

Expand Down

0 comments on commit c39224c

Please sign in to comment.