From 70dffdc3e1cd172090d4665abaacd4ebd77e9a16 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 22 Aug 2011 20:26:10 -0500 Subject: [PATCH] oops --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e691e5b53f..d0d6a3ae8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ if(GIT_FOUND AND NOT DOLPHIN_WC_REVISION) OUTPUT_STRIP_TRAILING_WHITESPACE) # remove hash from description - STRING(REGEX REPLACE "-[^-]+(-dirty)?$" "\\1" DOLPHIN_WC_DESCRIBE "${DOLPHIN_WC_DESCRIBE}") + STRING(REGEX REPLACE "-[^-]+((-dirty)?)$" "\\1" DOLPHIN_WC_DESCRIBE "${DOLPHIN_WC_DESCRIBE}") # defines DOLPHIN_WC_BRANCH EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD