diff options
author | Brad King <brad.king@kitware.com> | 2010-09-21 14:40:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-09-21 14:40:39 (GMT) |
commit | 8c865b3b251f31d234dda54804b53444c83fdc33 (patch) | |
tree | e1d445b391ace6476faa30ba2621a67aafd5e316 /Modules | |
parent | a8d0539598ecd5513795f928c0474a97bcef0b11 (diff) | |
parent | a56969f3d3dcd6f711b8f1881f0258ec4a333373 (diff) | |
download | CMake-8c865b3b251f31d234dda54804b53444c83fdc33.zip CMake-8c865b3b251f31d234dda54804b53444c83fdc33.tar.gz CMake-8c865b3b251f31d234dda54804b53444c83fdc33.tar.bz2 |
Merge topic 'FindMPI-f-flags'
a56969f FindMPI: Recoginze -f flags from mpicc (#10771)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 45d6bff..9fef8f9 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -188,7 +188,7 @@ if (MPI_INCLUDE_PATH AND MPI_LIBRARY) # the cache, and we don't want to override those settings. elseif (MPI_COMPILE_CMDLINE) # Extract compile flags from the compile command line. - string(REGEX MATCHALL "(^| )-D([^\" ]+|\"[^\"]+\")" MPI_ALL_COMPILE_FLAGS "${MPI_COMPILE_CMDLINE}") + string(REGEX MATCHALL "(^| )-[Df]([^\" ]+|\"[^\"]+\")" MPI_ALL_COMPILE_FLAGS "${MPI_COMPILE_CMDLINE}") set(MPI_COMPILE_FLAGS_WORK) foreach(FLAG ${MPI_ALL_COMPILE_FLAGS}) if (MPI_COMPILE_FLAGS_WORK) |