Merge pull request #25577 from FantasqueX:fix-zlib-ng-version-parse-1

Fix zlib-ng version parse
pull/25590/head
Alexander Smorkalov 7 months ago committed by GitHub
commit 02ad8c284f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmake/OpenCVUtils.cmake

@ -1438,7 +1438,7 @@ macro(ocv_parse_header_version LIBNAME HDR_PATH LIBVER)
file(STRINGS "${HDR_PATH}" ${LIBNAME}_H REGEX "^#define[ \t]+${LIBVER}[ \t]+\"[^\"]*\".*$" LIMIT_COUNT 1)
endif()
if(${LIBNAME}_H)
string(REGEX REPLACE "^.*[ \t]${LIBVER}[ \t]+\"([0-9\.]+)\"$" "\\1" ${LIBNAME}_VERSION_STRING "${${LIBNAME}_H}")
string(REGEX REPLACE "^.*[ \t]${LIBVER}[ \t]+\"(.+)\"$" "\\1" ${LIBNAME}_VERSION_STRING "${${LIBNAME}_H}")
endif()
endmacro()

Loading…
Cancel
Save