mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-28 04:23:36 +01:00
cmake: set HASH to 0, not empty string, when building out-of-git
This commit is contained in:
parent
086ad19d13
commit
824a150dfb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue