Bug #89135 -DWITH_ZLIB=system breaks cmake feature tests
Submitted: 8 Jan 2018 15:30 Modified: 6 Mar 2018 17:39
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.5 OS:Any
Assigned to: CPU Architecture:Any

[8 Jan 2018 15:30] Tor Didriksen
The cmake code for checking "system" zlib resets CMAKE_REQUIRED_LIBRARIES
This may break any subsequent feature tests.

How to repeat:
Build on Solaris -DWITH_ZLIB=system, InnoDB feature tests will fail.

Suggested fix:
Don't reset CMAKE_REQUIRED_LIBRARIES, as setup by configure.cmake
[6 Mar 2018 17:39] Paul DuBois
Posted by developer:
Fixed in 5.7.22, 8.0.5.

-DWITH_ZLIB=system could cause other CMake feature tests to fail.