From 1d70331123ed5049f073706bbc25d6cb040638c7 Mon Sep 17 00:00:00 2001 From: PBerger Date: Fri, 7 Mar 2014 20:09:42 +0100 Subject: [PATCH] Fixed a bug in a Regex. Former-commit-id: 33793efb16c25d2e499297d3c6974a1efd3192b8 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aa26de4b..aa1e269c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,12 +170,12 @@ endif() # include(GetGitRevisionDescription) git_describe_checkout(STORM_GIT_VERSION_STRING) - +message(STATUS "STORM_GIT_VERSION_STRING: ${STORM_GIT_VERSION_STRING}") # Parse the git Tag into variables string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" STORM_CPP_VERSION_MAJOR "${STORM_GIT_VERSION_STRING}") string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" STORM_CPP_VERSION_MINOR "${STORM_GIT_VERSION_STRING}") string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" STORM_CPP_VERSION_PATCH "${STORM_GIT_VERSION_STRING}") -string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+)\\-([0-9]+)\\-.*" "\\1" STORM_CPP_VERSION_COMMITS_AHEAD "${STORM_GIT_VERSION_STRING}") +string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-([0-9]+)\\-.*" "\\1" STORM_CPP_VERSION_COMMITS_AHEAD "${STORM_GIT_VERSION_STRING}") string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-([a-z0-9]+).*" "\\1" STORM_CPP_VERSION_HASH "${STORM_GIT_VERSION_STRING}") string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-[a-z0-9]+\\-(.*)" "\\1" STORM_CPP_VERSION_APPENDIX "${STORM_GIT_VERSION_STRING}") if ("${STORM_CPP_VERSION_APPENDIX}" MATCHES "^.*dirty.*$")