diff options
author | Brad King <brad.king@kitware.com> | 2018-09-11 12:18:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-11 12:18:55 (GMT) |
commit | dcbad14d23c8ca6673251a3f6ea9587ee0fe3d51 (patch) | |
tree | b74e6e37f150e62466c027baa704075fd0328797 /Modules | |
parent | bb59e362cca795543a551f765fb8d39c0236df45 (diff) | |
parent | e374b9f1ebae70ca4381588362d6d3418f832ea7 (diff) | |
download | CMake-dcbad14d23c8ca6673251a3f6ea9587ee0fe3d51.zip CMake-dcbad14d23c8ca6673251a3f6ea9587ee0fe3d51.tar.gz CMake-dcbad14d23c8ca6673251a3f6ea9587ee0fe3d51.tar.bz2 |
Merge topic 'FindMPI-restore-flags-string'
e374b9f1eb FindMPI: Restore MPI_<LANG>_COMPILE_FLAGS as a command-line string
Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Christoph Junghans <junghans@votca.org>
Reviewed-by: Christian Pfeiffer <cpfeiffer@live.de>
Merge-request: !2368
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 75c4441..bfcd876 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1680,7 +1680,7 @@ foreach(LANG IN ITEMS C CXX Fortran) set(MPI_${LANG}_INCLUDE_PATH "${MPI_${LANG}_INCLUDE_DIRS}") unset(MPI_${LANG}_COMPILE_FLAGS) if(MPI_${LANG}_COMPILE_OPTIONS) - set(MPI_${LANG}_COMPILE_FLAGS "${MPI_${LANG}_COMPILE_OPTIONS}") + list(JOIN MPI_${LANG}_COMPILE_FLAGS " " MPI_${LANG}_COMPILE_OPTIONS) endif() if(MPI_${LANG}_COMPILE_DEFINITIONS) foreach(_MPI_DEF IN LISTS MPI_${LANG}_COMPILE_DEFINITIONS) |