From 18864567c8a1139d2fc83cda24587043d5beaf84 Mon Sep 17 00:00:00 2001 From: Tongliang Liao Date: Mon, 29 Apr 2019 15:27:09 -0700 Subject: [PATCH] CMake has stock FindZLIB in upper case. (#5261) Summary: More details in https://cmake.org/cmake/help/v3.14/module/FindZLIB.html This resolves the cmake config error of not finding `Findzlib` on Linux (CentOS 7 + cmake 3.14.3 + gcc-8). Pull Request resolved: https://github.com/facebook/rocksdb/pull/5261 Differential Revision: D15138052 Pulled By: maysamyabandeh fbshipit-source-id: 2f4445f49a36c16e6f1e05c090018c02379c0de4 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 132d3b04e..fb8067d22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,7 @@ else() endif() if(WITH_ZLIB) - find_package(zlib REQUIRED) + find_package(ZLIB REQUIRED) add_definitions(-DZLIB) if(ZLIB_INCLUDE_DIRS) # CMake 3