Skip to content

Commit

Permalink
cmake: fix shell command quoting in build-info script (ggml-org#11309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarbirus authored Jan 20, 2025
1 parent ec7f3ac commit a4251ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/build-info.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit a4251ed

Please sign in to comment.