Skip to content

Commit 816e34e

Browse files
committed
Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler].
1 parent dbcdbf8 commit 816e34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ endif()
128128

129129
# parse the full version number from zlib.h and include in ZLIB_FULL_VERSION
130130
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/zlib.h _zlib_h_contents)
131-
string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([0-9A-Za-z.]+)\".*"
131+
string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
132132
"\\1" ZLIB_FULL_VERSION ${_zlib_h_contents})
133133

134134
if(MINGW)

0 commit comments

Comments
 (0)