fix build issue if tags of this repo are not checked out (issue #1)

This commit is contained in:
mlangkabel
2019-02-01 15:43:16 +01:00
parent db936766e4
commit 4edb7f26ac
+5
View File
@@ -32,6 +32,11 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
OUTPUT_STRIP_TRAILING_WHITESPACE
)
else()
set(GIT_VERSION_NUMBER "")
endif()
if("${GIT_VERSION_NUMBER}" STREQUAL "")
message(WARNING "Unable to derive SourcetrailDB version number from most recent Git tag.")
set(GIT_VERSION_NUMBER "v0.db0.p0-0-a")
endif()