commit
f019de539b
|
|
@ -60,6 +60,11 @@ function(resolve_version_variables)
|
||||||
# PROJECT_VERSION_TIMESTAMP
|
# PROJECT_VERSION_TIMESTAMP
|
||||||
if(NOT PROJECT_VERSION_TIMESTAMP)
|
if(NOT PROJECT_VERSION_TIMESTAMP)
|
||||||
git_head_commit_timestamp(timestamp)
|
git_head_commit_timestamp(timestamp)
|
||||||
|
set(ERRORS "GIT-NOTFOUND" "HEAD-FORMAT-NOTFOUND" "HEAD-HASH-NOTFOUND")
|
||||||
|
if(timestamp IN_LIST ERRORS)
|
||||||
|
# git not available, set fallback values
|
||||||
|
set(timestamp 0)
|
||||||
|
endif()
|
||||||
set(PROJECT_VERSION_TIMESTAMP
|
set(PROJECT_VERSION_TIMESTAMP
|
||||||
"${timestamp}"
|
"${timestamp}"
|
||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue