]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
CMakeLists.txt: fix version in zlib.pc when building statically
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 27 May 2022 21:25:21 +0000 (23:25 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 2 Jun 2022 10:24:57 +0000 (12:24 +0200)
commit6038b6443257e725b3aa3b0bbeeb8ee01474a565
tree3ad48c3493896e91049270474c67b60b3f67daf1
parent19c649838ae7ae82b2cf4d81c9471c8deaac80ff
CMakeLists.txt: fix version in zlib.pc when building statically

When building statically (i.e. with BUILD_SHARED_LIBS=OFF),
ZLIB_FULL_VERSION is not set resulting in an empty version in zlib.pc
and the following build failure with transmission:

checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met:

Package dependency requirement 'zlib >= 1.2.3' could not be satisfied.
Package 'zlib' has version '', required version is '>= 1.2.3'

Fixes:
 - http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
CMakeLists.txt