]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/cmake/modules/Findsnappy.cmake
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / cmake / modules / Findsnappy.cmake
1 # - Find Snappy
2 # Find the snappy compression library and includes
3 #
4 # SNAPPY_INCLUDE_DIR - where to find snappy.h, etc.
5 # SNAPPY_LIBRARIES - List of libraries when using snappy.
6 # SNAPPY_FOUND - True if snappy found.
7
8 find_path(SNAPPY_INCLUDE_DIR
9 NAMES snappy.h
10 HINTS ${SNAPPY_ROOT_DIR}/include)
11
12 find_library(SNAPPY_LIBRARIES
13 NAMES snappy
14 HINTS ${SNAPPY_ROOT_DIR}/lib)
15
16 include(FindPackageHandleStandardArgs)
17 find_package_handle_standard_args(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
18
19 mark_as_advanced(
20 SNAPPY_LIBRARIES
21 SNAPPY_INCLUDE_DIR)