cmake: libradosstriper's OUTPUT_NAME should be radosstriper

and s/libradosstriper/radosstriper/ otherwise the created .so
filename would be liblibradosstriper.so with the default prefix.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-05-29 00:22:31 +08:00
parent 6936a811a3
commit 8588e3d55e
3 changed files with 9 additions and 6 deletions

View File

@ -605,7 +605,7 @@ set(rados_srcs
tools/rados/PoolDump.cc
common/obj_bencher.cc)
add_executable(rados ${rados_srcs})
target_link_libraries(rados librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} libradosstriper)
target_link_libraries(rados librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} radosstriper)
if (WITH_CEPHFS)
set(cephfs_journal_tool_srcs

View File

@ -2,8 +2,11 @@ set(libradosstriper_srcs
libradosstriper.cc
RadosStriperImpl.cc
MultiAioCompletionImpl.cc)
add_library(libradosstriper ${libradosstriper_srcs})
target_link_libraries(libradosstriper librados cls_lock_client osdc common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
set_target_properties(libradosstriper PROPERTIES OUPUT_NAME libradosstriper VERSION "1.0.0" SOVERSION "1")
add_library(radosstriper ${libradosstriper_srcs})
target_link_libraries(radosstriper librados cls_lock_client osdc common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
set_target_properties(radosstriper PROPERTIES
OUPUT_NAME radosstriper
VERSION "1.0.0"
SOVERSION "1")
install(TARGETS libradosstriper DESTINATION lib)
install(TARGETS radosstriper DESTINATION lib)

View File

@ -6,7 +6,7 @@ set_target_properties(rados_striper_test PROPERTIES COMPILE_FLAGS
add_executable(ceph_test_rados_api_striping
striping.cc
)
target_link_libraries(ceph_test_rados_api_striping librados libradosstriper
target_link_libraries(ceph_test_rados_api_striping librados radosstriper
${UNITTEST_LIBS} rados_striper_test)
set_target_properties(ceph_test_rados_api_striping PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})