From 0542d66620146fc1a8b5de94cfebcf9fd964661b Mon Sep 17 00:00:00 2001 From: dehnert Date: Mon, 26 Jun 2017 18:22:24 +0200 Subject: [PATCH] improved checking for git revision information --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 024fc9689..9d8394166 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,7 +383,7 @@ string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-([a-z0-9]+).*" "\\1" string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-[a-z0-9]+\\-(.*)" "\\1" STORM_VERSION_APPENDIX "${STORM_GIT_VERSION_STRING}") # now check whether the git version lookup failed -if (STORM_VERSION_MAJOR STREQUAL "HEAD-HASH-NOTFOUND") +if (STORM_VERSION_MAJOR MATCHES "NOTFOUND") set(STORM_VERSION_MAJOR 1) set(STORM_VERSION_MINOR 0) set(STORM_VERSION_PATCH 0)