summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@metalstrolche.de>2015-12-14 09:44:22 +0100
committerStefan Wildemann <metalstrolch@metalstrolche.de>2015-12-14 10:21:21 +0100
commitddf977f7169e3378e4ad13234c982ef6bb6bcc92 (patch)
tree0c1c50f81971fe384b80264a0c3dcaf570826816 /cmake
parent70755a32842a49a4ae038c6152478f97347b9e9a (diff)
downloadnavit-ddf977f7169e3378e4ad13234c982ef6bb6bcc92.tar.gz
fix:build Cope with build fron non git tree but git present
Diffstat (limited to 'cmake')
-rwxr-xr-x[-rw-r--r--]cmake/version.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/version.cmake b/cmake/version.cmake
index 8d08e5532..12fadd7a1 100644..100755
--- a/cmake/version.cmake
+++ b/cmake/version.cmake
@@ -9,6 +9,10 @@ if (GIT_EXECUTABLE)
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+ if(NOT VERSION)
+ message(STATUS "git found, but no git tree")
+ set(VERSION "0000")
+ endif()
else()
message(STATUS "git not found, cannot record git commit")
set(VERSION "0000")