]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: s/snappy/${SNAPPY_LIBRARIES}/ 12840/head
authorKefu Chai <kchai@redhat.com>
Mon, 9 Jan 2017 17:49:12 +0000 (01:49 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Jan 2017 13:10:53 +0000 (21:10 +0800)
also s/z/${ZLIB_LIBARIES}/

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/snappy/CMakeLists.txt
src/compressor/zlib/CMakeLists.txt
src/kv/CMakeLists.txt

index e76f0220fee0d18a258b4ae908cf8ab6ad0032e3..6cd9d69bc766e54fda611284f83187ff039073bc 100644 (file)
@@ -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})
 
index 47efffb1177ee418e1acb4b0bcf19c44b1ac6499..46220f0a799bee9bbc1d1ab73b44b0d4e5e76f37 100644 (file)
@@ -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})
index d1bb15a506b9ac2cba1f6020ff52e2a99549725b..1d613ade154c321a2bba2b2f27ad330925062cef 100644 (file)
@@ -11,7 +11,7 @@ add_library(kv_objs OBJECT ${kv_srcs})
 add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
 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)