]> git.proxmox.com Git - ceph.git/blame - ceph/cmake/modules/Findsnappy.cmake
update sources to v12.1.3
[ceph.git] / ceph / cmake / modules / Findsnappy.cmake
CommitLineData
7c673cae
FG
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
8find_path(SNAPPY_INCLUDE_DIR
9 NAMES snappy.h
10 HINTS ${SNAPPY_ROOT_DIR}/include)
11
12find_library(SNAPPY_LIBRARIES
13 NAMES snappy
14 HINTS ${SNAPPY_ROOT_DIR}/lib)
15
16# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
17# all listed variables are TRUE
18include(FindPackageHandleStandardArgs)
19find_package_handle_standard_args(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
20
21mark_as_advanced(
22 SNAPPY_LIBRARIES
23 SNAPPY_INCLUDE_DIR)