1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

cmake: install compressor plugins into ${pkglibdir/compressor

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-06-01 11:25:11 +08:00
parent 4f05601730
commit dfea8e41bd
3 changed files with 3 additions and 3 deletions

View 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)

View 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})

View 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})