Fix detection of current tag with git
parent
c916899e0e
commit
b0b4247452
|
@ -50,7 +50,7 @@ MACRO(CHECK_DVCS)
|
|||
IF(HG_FOUND)
|
||||
DVCS_CALL("tag" "" id -t)
|
||||
ELSEIF(GIT_FOUND)
|
||||
DVCS_CALL("tag" "" name-rev --tags --name-only HEAD)
|
||||
DVCS_CALL("tag" "" tag -l --points-at HEAD)
|
||||
ENDIF()
|
||||
IF(NOT "${dvcs_tag}" STREQUAL "tip" AND NOT "${dvcs_tag}" STREQUAL "" AND NOT "${dvcs_tag}" STREQUAL "undefined")
|
||||
IF(NOT dvcs_tag STREQUAL PROJECT_VERSION)
|
||||
|
|
Loading…
Reference in New Issue