diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/version.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/version.cmake b/cmake/version.cmake index ee419bbc4..8d08e5532 100644 --- a/cmake/version.cmake +++ b/cmake/version.cmake @@ -15,6 +15,11 @@ else() endif(GIT_EXECUTABLE) string(REGEX MATCH "R[0-9]+" VERSION_NUM ${VERSION} ) +if(NOT VERSION_NUM) + message(STATUS "I can't find a release tag. This is probably not Navit's official tree") + message(STATUS "It's OK, I will default to 0000") + set(VERSION_NUM "0000") +endif() string(REPLACE "R" "" VERSION_NUM ${VERSION_NUM} ) if(NOT VERSION_NUM) set(VERSION_NUM "0000") |