cmake: set HASH to 0, not empty string, when building out-of-git

This commit is contained in:
Lephe 2021-06-08 23:04:41 +02:00
parent 086ad19d13
commit 824a150dfb
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -16,7 +16,7 @@ set(CMAKE_INSTALL_MESSAGE LAZY)
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
git_version_number(SHORT_HASH "GINT_GIT_HASH" TAG_RELATIVE "GINT_GIT_VERSION")
else()
set(GINT_GIT_HASH "")
set(GINT_GIT_HASH "0000000")
set(GINT_GIT_VERSION "${PROJECT_VERSION}")
endif()
configure_file(include/gint/config.h.in include/gint/config.h)