mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
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`.
This commit is contained in:
1 parent
cc5bac458b
commit
0239b586bd
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user