ceph/cmake/modules/FindLZ4.cmake
Kefu Chai 3626d86de6 cmake: add check for liblz4
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-07 03:59:36 -08:00

16 lines
341 B
CMake

# Try to find liblz4
#
# Once done, this will define
#
# LZ4_FOUND
# LZ4_INCLUDE_DIR
# LZ4_LIBRARY
find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
find_library(LZ4_LIBRARY NAMES lz4)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LZ4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR)
mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY)