summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/version.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/version.cmake b/cmake/version.cmake
index 3cf26d547..413bf0e83 100644
--- a/cmake/version.cmake
+++ b/cmake/version.cmake
@@ -28,6 +28,9 @@ if (NOT VERSION)
endif(Subversion_FOUND)
if (VERSION AND (NOT ${VERSION} MATCHES "^exported"))
+ if (STRIP_M)
+ string(REGEX REPLACE "M$" "" VERSION ${VERSION})
+ endif()
set( ${NAME} ${VERSION} )
endif()
else()