From: Mark Adler Date: Mon, 30 Apr 2012 04:15:12 +0000 (-0700) Subject: Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler]. X-Git-Tag: v1.2.7~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=816e34e1b5b34a25d0e4eeb469a3d6994779edde;p=thirdparty%2Fzlib-ng.git Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler]. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 09725af68..09ae69dd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,7 @@ endif() # parse the full version number from zlib.h and include in ZLIB_FULL_VERSION file(READ ${CMAKE_CURRENT_SOURCE_DIR}/zlib.h _zlib_h_contents) -string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([0-9A-Za-z.]+)\".*" +string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*" "\\1" ZLIB_FULL_VERSION ${_zlib_h_contents}) if(MINGW)