summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-10 11:58:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-10 11:58:10 (GMT)
commitd6853ef405f1ac291d8304b9dbc30afb33831b01 (patch)
treed416aa53cd36ff719a3bb69f499bb82dc5801554 /Modules
parent1504c6db9067f30e293430c61641cfd6c2c515a6 (diff)
parent0239b586bdca2173f8b7309bce7771f59ac99568 (diff)
downloadCMake-d6853ef405f1ac291d8304b9dbc30afb33831b01.zip
CMake-d6853ef405f1ac291d8304b9dbc30afb33831b01.tar.gz
CMake-d6853ef405f1ac291d8304b9dbc30afb33831b01.tar.bz2
Merge topic 'extra-generator-split-arg1'
0239b586bd Extra Generator: Fix handling of CMAKE_<LANG>_COMPILER_ARG1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2352
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake b/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
index 55e0373..11f4a29 100644
--- a/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
+++ b/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
@@ -27,6 +27,7 @@ macro(_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS _lang _resultIncludeDirs _resultDefines
set(_compilerExecutable "${CMAKE_C_COMPILER}")
set(_arg1 "${CMAKE_C_COMPILER_ARG1}")
endif ()
+ separate_arguments(_arg1 NATIVE_COMMAND "${_arg1}")
execute_process(COMMAND ${_compilerExecutable} ${_arg1} ${_stdver} ${_stdlib} -v -E -x ${_lang} -dD dummy
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeFiles
ERROR_VARIABLE _gccOutput