-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Build
libmongoc's CMakeLists.txt silently ignores ENABLE_ZLIB=system, treating it the same as ENABLE_ZLIB=no. Same for ENABLE_ZLIB=auto.
The Autotools scripts correctly use the system zlib if "--with-zlib=system", and correctly chooses system or bundled zlib if "--with-zlib=auto".
Update CMakeLists.txt and implement the correct logic for ENABLE_ZLIB=system or ENABLE_ZLIB=auto.