diff options
author | Adam Oleksy <extern.adam.oleksy@elektrobit.com> | 2018-09-05 12:55:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-07 20:11:11 (GMT) |
commit | 0239b586bdca2173f8b7309bce7771f59ac99568 (patch) | |
tree | 33069da4eb6f9ff2b961e1fadd40b1899ed1bfe3 /Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake | |
parent | cc5bac458b85081f813a2c169fda104f59233c37 (diff) | |
download | CMake-0239b586bdca2173f8b7309bce7771f59ac99568.zip CMake-0239b586bdca2173f8b7309bce7771f59ac99568.tar.gz CMake-0239b586bdca2173f8b7309bce7771f59ac99568.tar.bz2 |
Extra Generator: Fix handling of CMAKE_<LANG>_COMPILER_ARG1
The "arg1" value is a command-line string so we must parse it to get
separate arguments for `execute_process`.
Diffstat (limited to 'Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake')
-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 |