mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix regex for old CMake (Fixes: #521)
This commit is contained in:
parent
ad5ebaa813
commit
57d090d29d
@ -42,7 +42,7 @@ if(GIT_FOUND)
|
||||
)
|
||||
endif()
|
||||
# Sanitize branch name
|
||||
string(REGEX REPLACE "[#!?&|\/^$%*]" "_" GIT_BRANCH "${GIT_BRANCH}")
|
||||
string(REGEX REPLACE "[#!?&|/^$%*]" "_" GIT_BRANCH "${GIT_BRANCH}")
|
||||
set(VOLK_GNSSSDR_GIT_BRANCH "${GIT_BRANCH}")
|
||||
set(VOLK_GNSSSDR_GIT_HASH "${GIT_COMMIT_HASH}")
|
||||
else()
|
||||
@ -54,7 +54,7 @@ else()
|
||||
|
||||
if(GIT_BRANCH)
|
||||
# Sanitize branch name
|
||||
string(REGEX REPLACE "[#!?&|\/^$%*]" "_" GIT_BRANCH "${GIT_BRANCH}")
|
||||
string(REGEX REPLACE "[#!?&|/^$%*]" "_" GIT_BRANCH "${GIT_BRANCH}")
|
||||
set(VOLK_GNSSSDR_GIT_BRANCH "${GIT_BRANCH}")
|
||||
else()
|
||||
set(VOLK_GNSSSDR_GIT_BRANCH "unknown")
|
||||
|
Loading…
Reference in New Issue
Block a user