Fix detection of current tag with git

pull/2/head
André Klitzing 2017-07-03 20:01:36 +02:00
parent c916899e0e
commit 7a463a2a06
1 changed files with 1 additions and 1 deletions

View File

@ -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)