Skip to content

Commit ac5fbc9

Browse files
Xarbirustinglou
authored andcommitted
cmake: fix shell command quoting in build-info script (ggml-org#11309)
1 parent 75a9af4 commit ac5fbc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/build-info.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if(MSVC)
4444
set(BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME})
4545
else()
4646
execute_process(
47-
COMMAND sh -c "$@ --version | head -1" _ ${CMAKE_C_COMPILER}
47+
COMMAND sh -c "\"$@\" --version | head -1" _ ${CMAKE_C_COMPILER}
4848
OUTPUT_VARIABLE OUT
4949
OUTPUT_STRIP_TRAILING_WHITESPACE
5050
)

0 commit comments

Comments
 (0)