This commit is contained in:
parent
babf17cf6f
commit
28e14e1604
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ execute_process(COMMAND bash "-c" "git rev-parse HEAD" OUTPUT_VARIABLE GIT_HASH
|
||||||
execute_process(COMMAND bash "-c" "git tag -l --sort=refname 'v*' | tail -n1" OUTPUT_VARIABLE GIT_TAG OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND bash "-c" "git tag -l --sort=refname 'v*' | tail -n1" OUTPUT_VARIABLE GIT_TAG OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
execute_process(COMMAND bash "-c" "git rev-list -n 1 ${GIT_TAG}" OUTPUT_VARIABLE GIT_TAG_HASH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND bash "-c" "git rev-list -n 1 ${GIT_TAG}" OUTPUT_VARIABLE GIT_TAG_HASH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
message(STATUS "${GIT_HASH}")
|
message(STATUS "${GIT_HASH}")
|
||||||
|
message(STATUS "${GIT_TAG}")
|
||||||
if("${GIT_TAG}" EQUAL "")
|
if("${GIT_TAG}" EQUAL "")
|
||||||
set(VERSION "v0.0.0-test")
|
set(VERSION "v0.0.0-test")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue