mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Override v2.13.0-555-g11e37a0bd from git describe
with 2.13.7 from ./ICINGA2_VERSION -> v2.13.7-555-g11e37a0bd
This commit is contained in:
parent
9ea3534a51
commit
2b1e5a429f
1 changed files with 4 additions and 0 deletions
|
|
@ -125,6 +125,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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue