diff options
author | Brad King <brad.king@kitware.com> | 2021-08-24 13:54:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-24 13:54:58 (GMT) |
commit | 38dbf18bb10acc499a3cb068789c09a9433cd563 (patch) | |
tree | f8b8053305d47c2c7c097f9d1f4b3e130fc3454f /Modules | |
parent | 4b613cd706d292db2b96d9482331f277dfe8b0dd (diff) | |
parent | 2b2a6a7170c2253c1f97647a03c190aa906e194a (diff) | |
download | CMake-38dbf18bb10acc499a3cb068789c09a9433cd563.zip CMake-38dbf18bb10acc499a3cb068789c09a9433cd563.tar.gz CMake-38dbf18bb10acc499a3cb068789c09a9433cd563.tar.bz2 |
Merge topic 'FindMPI-framework-not-a-compile-flag'
2b2a6a7170 FindMPI: do not detect `-framework` as a compile flag
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !6467
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMPI.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index f64c4b8..d4b4a34 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -649,7 +649,8 @@ function (_MPI_interrogate_compiler LANG) # we won't match the accompanying --param-ssp-size and -Wp,-D_FORTIFY_SOURCE flags and therefore # produce inconsistent results with the regularly flags. # Similarly, aliasing flags do not belong into our flag array. - if(NOT "${_MPI_COMPILE_OPTION}" MATCHES "^-f((no-|)(stack-protector|strict-aliasing)|PI[CE]|pi[ce])") + # Also strip out `-framework` flags. + if(NOT "${_MPI_COMPILE_OPTION}" MATCHES "^-f((no-|)(stack-protector|strict-aliasing)|PI[CE]|pi[ce]|ramework)") list(APPEND MPI_COMPILE_OPTIONS_WORK "${_MPI_COMPILE_OPTION}") endif() endforeach() |