Skip to content

Commit

Permalink
cmake: remove rados_a target
Browse files Browse the repository at this point in the history
rados_a is librados.a, which is not neeeded anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Oct 27, 2017
1 parent 5971319 commit 13bc955
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/librados/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ add_library(librados_objs OBJECT
RadosClient.cc)
add_library(librados_api_obj OBJECT
librados.cc)
add_library(rados_a STATIC
$<TARGET_OBJECTS:librados_api_obj>
$<TARGET_OBJECTS:librados_objs>)
target_link_libraries(rados_a osdc ceph-common cls_lock_client
${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS})
if(WITH_LTTNG)
add_dependencies(librados_api_obj librados-tp)
endif()
Expand All @@ -29,7 +24,11 @@ if(ENABLE_SHARED)
LINK_FLAGS " -Wl,--exclude-libs,ALL")
endif()
else(ENABLE_SHARED)
add_library(librados ALIAS rados_a)
add_library(librados STATIC
$<TARGET_OBJECTS:librados_api_obj>
$<TARGET_OBJECTS:librados_objs>)
target_link_libraries(librados osdc ceph-common cls_lock_client
${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS})
endif(ENABLE_SHARED)
install(TARGETS librados DESTINATION ${CMAKE_INSTALL_LIBDIR})

Expand Down

0 comments on commit 13bc955

Please sign in to comment.