]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
CMake has stock FindZLIB in upper case. (#5261) ceph-octopus-v5.8-1435
authorTongliang Liao <xkszltl@gmail.com>
Mon, 29 Apr 2019 22:27:09 +0000 (15:27 -0700)
committerMark Nelson <mnelson@redhat.com>
Thu, 18 Jul 2019 18:02:49 +0000 (13:02 -0500)
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

index 132d3b04e965e336a4a945446f2d8bed48c316de..fb8067d2245845e33f53a9f977304ceaaff7f13d 100644 (file)
@@ -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