From: Kefu Chai Date: Mon, 9 Jan 2017 17:49:12 +0000 (+0800) Subject: cmake: s/snappy/${SNAPPY_LIBRARIES}/ X-Git-Tag: v12.0.0~227^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12840%2Fhead;p=ceph.git cmake: s/snappy/${SNAPPY_LIBRARIES}/ also s/z/${ZLIB_LIBARIES}/ Signed-off-by: Kefu Chai --- diff --git a/src/compressor/snappy/CMakeLists.txt b/src/compressor/snappy/CMakeLists.txt index e76f0220fee0..6cd9d69bc766 100644 --- a/src/compressor/snappy/CMakeLists.txt +++ b/src/compressor/snappy/CMakeLists.txt @@ -6,7 +6,7 @@ set(snappy_sources add_library(ceph_snappy SHARED ${snappy_sources}) add_dependencies(ceph_snappy ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) -target_link_libraries(ceph_snappy snappy) +target_link_libraries(ceph_snappy ${SNAPPY_LIBRARIES}) set_target_properties(ceph_snappy PROPERTIES VERSION 2.0.0 SOVERSION 2) install(TARGETS ceph_snappy DESTINATION ${compressor_plugin_dir}) diff --git a/src/compressor/zlib/CMakeLists.txt b/src/compressor/zlib/CMakeLists.txt index 47efffb1177e..46220f0a799b 100644 --- a/src/compressor/zlib/CMakeLists.txt +++ b/src/compressor/zlib/CMakeLists.txt @@ -29,7 +29,7 @@ endif(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64) add_library(ceph_zlib SHARED ${zlib_sources}) add_dependencies(ceph_zlib ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) -target_link_libraries(ceph_zlib z) +target_link_libraries(ceph_zlib ${ZLIB_LIBRARIES}) target_include_directories(ceph_zlib PRIVATE "${CMAKE_SOURCE_DIR}/src/isa-l/include") set_target_properties(ceph_zlib PROPERTIES VERSION 2.0.0 SOVERSION 2) install(TARGETS ceph_zlib DESTINATION ${compressor_plugin_dir}) diff --git a/src/kv/CMakeLists.txt b/src/kv/CMakeLists.txt index d1bb15a506b9..1d613ade154c 100644 --- a/src/kv/CMakeLists.txt +++ b/src/kv/CMakeLists.txt @@ -11,7 +11,7 @@ add_library(kv_objs OBJECT ${kv_srcs}) add_library(kv STATIC $) target_include_directories(kv_objs BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR}) target_include_directories(kv BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR}) -target_link_libraries(kv ${LEVELDB_LIBRARIES} rocksdb ${ALLOC_LIBS} snappy z) +target_link_libraries(kv ${LEVELDB_LIBRARIES} rocksdb ${ALLOC_LIBS} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES}) # rocksdb detects bzlib and lz4 in its Makefile, which forces us to do the same. find_package(BZip2 QUIET)