We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a44b4 commit e078b87Copy full SHA for e078b87
1 file changed
cmake/ShamVersioning.cmake
@@ -43,6 +43,8 @@ else()
43
RESULT_VARIABLE GIT_BRANCH_RETURN_CODE
44
OUTPUT_STRIP_TRAILING_WHITESPACE
45
)
46
+ # Replace slashes with underscores in branch name to avoid file path issues
47
+ string(REPLACE "/" "_" SHAMROCK_GIT_BRANCH "${SHAMROCK_GIT_BRANCH}")
48
# check whether there are local changes
49
execute_process(COMMAND git diff-index --name-only HEAD
50
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
0 commit comments