mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
107c5f6a60
Summary: siying this is a resubmission of #2081 with the 4th commit fixed. From that commit message: > Note that the previous use of quotes in PLATFORM_{CC,CXX}FLAGS was incorrect and caused GCC to produce the incorrect define: > > #define ROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE 1 > > This was the cause of the Linux build failure on the previous version of this change. I've tested this locally, and the Linux build succeeds now. Closes https://github.com/facebook/rocksdb/pull/2097 Differential Revision: D4839964 Pulled By: siying fbshipit-source-id: cc51322
22 lines
569 B
CMake
22 lines
569 B
CMake
# - Find Snappy
|
|
# Find the snappy compression library and includes
|
|
#
|
|
# SNAPPY_INCLUDE_DIR - where to find snappy.h, etc.
|
|
# SNAPPY_LIBRARIES - List of libraries when using snappy.
|
|
# SNAPPY_FOUND - True if snappy found.
|
|
|
|
find_path(SNAPPY_INCLUDE_DIR
|
|
NAMES snappy.h
|
|
HINTS ${SNAPPY_ROOT_DIR}/include)
|
|
|
|
find_library(SNAPPY_LIBRARIES
|
|
NAMES snappy
|
|
HINTS ${SNAPPY_ROOT_DIR}/lib)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(
|
|
SNAPPY_LIBRARIES
|
|
SNAPPY_INCLUDE_DIR)
|