Merge pull request #306 from 3d-gussner/MMU_fix_cmake_zip

Fix cmake
pull/307/head
3d-gussner 2023-10-03 08:52:17 +02:00 committed by GitHub
commit f019de539b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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