diff options
author | Brad King <brad.king@kitware.com> | 2018-09-10 11:58:04 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-10 11:58:10 (GMT) |
commit | d6853ef405f1ac291d8304b9dbc30afb33831b01 (patch) | |
tree | d416aa53cd36ff719a3bb69f499bb82dc5801554 /Modules | |
parent | 1504c6db9067f30e293430c61641cfd6c2c515a6 (diff) | |
parent | 0239b586bdca2173f8b7309bce7771f59ac99568 (diff) | |
download | CMake-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.cmake | 1 |
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 |