Skip to content

Commit e078b87

Browse files
committed
[CMake] replace slashes by underscores in version string
1 parent 07a44b4 commit e078b87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmake/ShamVersioning.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ else()
4343
RESULT_VARIABLE GIT_BRANCH_RETURN_CODE
4444
OUTPUT_STRIP_TRAILING_WHITESPACE
4545
)
46+
# Replace slashes with underscores in branch name to avoid file path issues
47+
string(REPLACE "/" "_" SHAMROCK_GIT_BRANCH "${SHAMROCK_GIT_BRANCH}")
4648
# check whether there are local changes
4749
execute_process(COMMAND git diff-index --name-only HEAD
4850
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}

0 commit comments

Comments
 (0)