Skip to content

Commit

Permalink
Override v2.13.0-556-ga1fd8e465 from git describe
Browse files Browse the repository at this point in the history
with 2.13.6 from ./ICINGA2_VERSION -> v2.13.6-556-ga1fd8e465
  • Loading branch information
Al2Klimov committed Feb 3, 2023
1 parent a1fd8e4 commit 7971188
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 @@ -118,6 +118,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-556-ga1fd8e465 from git describe with 2.13.6 from ./ICINGA2_VERSION -> v2.13.6-556-ga1fd8e465
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 7971188

Please sign in to comment.