mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Better recognition of MPI wrappers in CMakeLists.txt
This commit is contained in:
parent
915121ab6f
commit
d2d386f5a4
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ endif()
|
|||
|
||||
set(MPI_ENABLED FALSE)
|
||||
set(HDF5_ENABLED FALSE)
|
||||
if($ENV{FC} MATCHES "mpi.*")
|
||||
if($ENV{FC} MATCHES "mpi[^/]*$")
|
||||
message("-- Detected MPI wrapper: $ENV{FC}")
|
||||
add_definitions(-DMPI)
|
||||
set(MPI_ENABLED TRUE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue