Skip to content

Commit 238635c

Browse files
authored
Fix unquoted filename (#2105)
Fixes issues with paths containing blanks: `sh: line 1: C:/Program: No such file or directory` https://github.com/AMICI-dev/AMICI/actions/runs/5054632314/jobs/9069784824?pr=2104
1 parent 4d767e7 commit 238635c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if(Git_FOUND)
33
execute_process(
44
COMMAND
55
sh -c
6-
"${GIT_EXECUTABLE} describe --abbrev=4 --dirty=-dirty --always --tags | cut -c 2- | tr -d '\n' | sed s/-/./"
6+
"'${GIT_EXECUTABLE}' describe --abbrev=4 --dirty=-dirty --always --tags | cut -c 2- | tr -d '\n' | sed s/-/./"
77
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
88
OUTPUT_VARIABLE PROJECT_VERSION_GIT)
99
endif()

0 commit comments

Comments
 (0)