Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / 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 # handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
17 # all listed variables are TRUE
18 include(FindPackageHandleStandardArgs)
19 find_package_handle_standard_args(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
20
21 mark_as_advanced(
22   SNAPPY_LIBRARIES
23   SNAPPY_INCLUDE_DIR)