cmake: fix shell command quoting in build-info script (#11309)
This commit is contained in:
parent
ec7f3ac9ab
commit
a4251edd6f
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ if(MSVC)
|
|||
set(BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME})
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND sh -c "$@ --version | head -1" _ ${CMAKE_C_COMPILER}
|
||||
COMMAND sh -c "\"$@\" --version | head -1" _ ${CMAKE_C_COMPILER}
|
||||
OUTPUT_VARIABLE OUT
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue