Better recognition of MPI wrappers in CMakeLists.txt

This commit is contained in:
Paul Romano 2015-04-14 10:14:30 -05:00
parent 915121ab6f
commit d2d386f5a4

View file

@ -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)