summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-11 12:18:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-11 12:18:55 (GMT)
commitdcbad14d23c8ca6673251a3f6ea9587ee0fe3d51 (patch)
treeb74e6e37f150e62466c027baa704075fd0328797 /Modules
parentbb59e362cca795543a551f765fb8d39c0236df45 (diff)
parente374b9f1ebae70ca4381588362d6d3418f832ea7 (diff)
downloadCMake-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.cmake2
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)