summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-04-26 18:34:23 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-04-26 18:34:23 (GMT)
commit28d83837978aefc7f6e467b41ff792817da9ec95 (patch)
tree954372b01e564e88737c2f370384ca987f3ff06a /Modules/FindMPI.cmake
parent2a207aaca1d8414624dd4cfe8fcb19d03fe84546 (diff)
downloadCMake-28d83837978aefc7f6e467b41ff792817da9ec95.zip
CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.gz
CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.bz2
separgs: Use NATIVE_COMMAND where appropriate
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index fab53cb..37f3255 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -645,8 +645,7 @@ foreach (lang C CXX Fortran)
add_library(MPI::MPI_${lang} INTERFACE IMPORTED)
endif()
if(MPI_${lang}_COMPILE_FLAGS)
- set(_MPI_${lang}_COMPILE_OPTIONS "${MPI_${lang}_COMPILE_FLAGS}")
- separate_arguments(_MPI_${lang}_COMPILE_OPTIONS)
+ separate_arguments(_MPI_${lang}_COMPILE_OPTIONS NATIVE_COMMAND "${MPI_${lang}_COMPILE_FLAGS}")
set_property(TARGET MPI::MPI_${lang} PROPERTY
INTERFACE_COMPILE_OPTIONS "${_MPI_${lang}_COMPILE_OPTIONS}")
endif()