Skip to content

Commit

Permalink
Override v2.13.0-555-g11e37a0bd from git describe
Browse files Browse the repository at this point in the history
with 2.13.7 from ./ICINGA2_VERSION -> v2.13.7-555-g11e37a0bd
  • Loading branch information
Al2Klimov committed Feb 3, 2025
1 parent 90a5306 commit 9509027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ else()
set(GIT_VERSION "r${SPEC_VERSION}-${SPEC_REVISION}")
set(ICINGA2_VERSION "${SPEC_VERSION}")
else()
if(GIT_VERSION MATCHES "-g")
# Override v2.13.0-555-g11e37a0bd from git describe with 2.13.7 from ./ICINGA2_VERSION -> v2.13.7-555-g11e37a0bd
string(REGEX REPLACE ^[v0-9.]+ "v${SPEC_VERSION}" GIT_VERSION "${GIT_VERSION}")
endif()
# use GIT version as ICINGA2_VERSION
string(REGEX REPLACE "^[rv]" "" ICINGA2_VERSION "${GIT_VERSION}")
endif()
Expand Down

0 comments on commit 9509027

Please sign in to comment.