mirror of
https://github.com/matrix-construct/construct
synced 2025-01-18 02:21:56 +01:00
configure: Add --always to git-describe invocations to fix empty version string.
This commit is contained in:
parent
5be75970e0
commit
90da2cb24a
1 changed files with 2 additions and 2 deletions
|
@ -1519,12 +1519,12 @@ RB_VERSION_BRANCH=`$VERSION_BRANCH_CMD`
|
|||
RB_DEFINE_UNQUOTED([VERSION_BRANCH], ["$RB_VERSION_BRANCH"], [Git branch at configuration time.])
|
||||
#CPPDEFINE([RB_VERSION_BRANCH], [`$VERSION_BRANCH_CMD`])
|
||||
|
||||
VERSION_TAG_CMD="git describe --tags --abbrev=0 --dirty"
|
||||
VERSION_TAG_CMD="git describe --tags --abbrev=0 --dirty --always"
|
||||
RB_VERSION_TAG=`$VERSION_TAG_CMD`
|
||||
RB_DEFINE_UNQUOTED([VERSION_TAG], ["$RB_VERSION_TAG"], [Git tag at configuration time.])
|
||||
#CPPDEFINE([RB_VERSION_TAG], [`$VERSION_TAG_CMD`])
|
||||
|
||||
VERSION_CMD="git describe --tags"
|
||||
VERSION_CMD="git describe --tags --always"
|
||||
RB_VERSION=`$VERSION_CMD`
|
||||
RB_DEFINE_UNQUOTED([VERSION], ["$RB_VERSION"], [Version generated at configuration time.])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue