Update ProjectVersion.cmake

pull/306/head
3d-gussner 2023-09-22 14:19:00 +02:00 committed by GitHub
parent 09bacabb05
commit fb65f4e563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ function(resolve_version_variables)
git_head_commit_timestamp(timestamp)
set(ERRORS "GIT-NOTFOUND" "HEAD-FORMAT-NOTFOUND" "HEAD-HASH-NOTFOUND")
if(timestamp IN_LIST ERRORS)
# git not availibe, set fallback values
set(timestamp 1618221861) #2021-04-12 120421
# git not available, set fallback values
set(timestamp 0)
endif()
set(PROJECT_VERSION_TIMESTAMP
"${timestamp}"