Skip to content

Commit

Permalink
- Simplified git describe to version string parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Jun 27, 2024
1 parent c733a84 commit 58fc3a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ execute_process (
if (GIT_DESCRIBE_RESULT EQUAL 0)
set (GIT_VERSION "${GIT_DESCRIBE_OUTPUT}")
string (REGEX REPLACE "^[^0-9]+" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "^1_" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "^[_vV]+" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "-g" "git." GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "[_|-]" "." GIT_VERSION "${GIT_VERSION}")
execute_process (
Expand Down

0 comments on commit 58fc3a2

Please sign in to comment.