summaryrefslogtreecommitdiffstats
path: root/Modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-11 16:17:46 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 16:17:11 (GMT)
commitb0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (patch)
tree8ac1cdf1e032517058698ee49b2ece5a299a51c8 /Modules/FindZLIB.cmake
parent5bd48ac5348885e15ebb23ea825a1ea777985b97 (diff)
downloadCMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.zip
CMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.tar.gz
CMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.tar.bz2
Remove .* expressions from beginning and end of MATCHES regexs
All these expressions work the same: "foo" ".*foo.*" "^.*foo.*$" This assumes that the "Intel*" expressions were meant to be "Intel.*".
Diffstat (limited to 'Modules/FindZLIB.cmake')
-rw-r--r--Modules/FindZLIB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindZLIB.cmake b/Modules/FindZLIB.cmake
index 75b0076..8cc382c 100644
--- a/Modules/FindZLIB.cmake
+++ b/Modules/FindZLIB.cmake
@@ -85,7 +85,7 @@ if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
# only append a TWEAK version if it exists:
set(ZLIB_VERSION_TWEAK "")
- if( "${ZLIB_H}" MATCHES "^.*ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+\\.([0-9]+).*$")
+ if( "${ZLIB_H}" MATCHES "ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+\\.([0-9]+)")
set(ZLIB_VERSION_TWEAK "${CMAKE_MATCH_1}")
set(ZLIB_VERSION_STRING "${ZLIB_VERSION_STRING}.${ZLIB_VERSION_TWEAK}")
endif()