]> git.lizzy.rs Git - zlib.git/commitdiff
Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler].
authorMark Adler <madler@alumni.caltech.edu>
Mon, 30 Apr 2012 04:15:12 +0000 (21:15 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 30 Apr 2012 04:15:12 +0000 (21:15 -0700)
CMakeLists.txt

index 09725af68f78c565e0786e94f866a82bbf7bcee3..09ae69dd181dbe1330996c45fa2beba75a3292b9 100644 (file)
@@ -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)