Update ProjectVersion.cmake
parent
09bacabb05
commit
fb65f4e563
|
|
@ -62,8 +62,8 @@ function(resolve_version_variables)
|
||||||
git_head_commit_timestamp(timestamp)
|
git_head_commit_timestamp(timestamp)
|
||||||
set(ERRORS "GIT-NOTFOUND" "HEAD-FORMAT-NOTFOUND" "HEAD-HASH-NOTFOUND")
|
set(ERRORS "GIT-NOTFOUND" "HEAD-FORMAT-NOTFOUND" "HEAD-HASH-NOTFOUND")
|
||||||
if(timestamp IN_LIST ERRORS)
|
if(timestamp IN_LIST ERRORS)
|
||||||
# git not availibe, set fallback values
|
# git not available, set fallback values
|
||||||
set(timestamp 1618221861) #2021-04-12 120421
|
set(timestamp 0)
|
||||||
endif()
|
endif()
|
||||||
set(PROJECT_VERSION_TIMESTAMP
|
set(PROJECT_VERSION_TIMESTAMP
|
||||||
"${timestamp}"
|
"${timestamp}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue