diff options
Diffstat (limited to 'cmake')
-rwxr-xr-x[-rw-r--r--] | cmake/version.cmake | 4 |
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") |