]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: install compressor plugins into ${pkglibdir/compressor
authorKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 03:25:11 +0000 (11:25 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 15:49:46 +0000 (23:49 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/CMakeLists.txt
src/compressor/snappy/CMakeLists.txt
src/compressor/zlib/CMakeLists.txt

index 3ebc47bee8171d515835305b073cfb3233aeaae5..36b0a90ceb4b3e905ec4d7a6522e0974f88e7317 100644 (file)
@@ -6,7 +6,7 @@ add_library(compressor_objs OBJECT ${compressor_srcs})
 
 ## compressor plugins
 
-set(compressorlibdir ${LIBRARY_OUTPUT_PATH}/compressor)
+set(compressor_plugin_dir ${CMAKE_INSTALL_PKGLIBDIR}/compressor)
 
 add_subdirectory(snappy)
 add_subdirectory(zlib)
index eb7473065dab06cbd6bb22b39aed8c0b72dbdf11..bd3ec59c7d18032eb22053a595c8ce871605dede 100644 (file)
@@ -8,4 +8,4 @@ add_library(ceph_snappy SHARED ${snappy_sources})
 add_dependencies(ceph_snappy ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
 target_link_libraries(ceph_snappy snappy)
 set_target_properties(ceph_snappy PROPERTIES VERSION 2.0.0 SOVERSION 2)
-install(TARGETS ceph_snappy DESTINATION lib/compressor)
+install(TARGETS ceph_snappy DESTINATION ${compressor_plugin_dir})
index b68f4c9875b4e498640b62d37fff87c299bbd29c..77766dc9fa0e2ca8a07c296a643aeef10c6984d1 100644 (file)
@@ -9,4 +9,4 @@ add_library(ceph_zlib SHARED ${zlib_sources})
 add_dependencies(ceph_zlib ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
 target_link_libraries(ceph_zlib z)
 set_target_properties(ceph_zlib PROPERTIES VERSION 2.0.0 SOVERSION 2)
-install(TARGETS ceph_zlib DESTINATION lib/compressor)
+install(TARGETS ceph_zlib DESTINATION ${compressor_plugin_dir})