mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
cls: build cls_otp only WITH_RADOSGW
Build fails if WITH_RADOSGW=OFF and there's no liboath or liboath version is incompatible with currently installed in system. As this module (cls_otp) is used only by RadosGW, disable building it if RadosGW is also disabled. Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
This commit is contained in:
parent
77f40ed408
commit
5c7a70e772
@ -70,21 +70,23 @@ add_library(cls_lock_client STATIC ${cls_lock_client_srcs})
|
||||
|
||||
|
||||
# cls_otp
|
||||
set(cls_otp_srcs otp/cls_otp.cc)
|
||||
add_library(cls_otp SHARED ${cls_otp_srcs})
|
||||
target_link_libraries(cls_otp OATH::OATH)
|
||||
set_target_properties(cls_otp PROPERTIES
|
||||
VERSION "1.0.0"
|
||||
SOVERSION "1"
|
||||
INSTALL_RPATH ""
|
||||
CXX_VISIBILITY_PRESET hidden)
|
||||
install(TARGETS cls_otp DESTINATION ${cls_dir})
|
||||
if (WITH_RADOSGW)
|
||||
set(cls_otp_srcs otp/cls_otp.cc)
|
||||
add_library(cls_otp SHARED ${cls_otp_srcs})
|
||||
target_link_libraries(cls_otp OATH::OATH)
|
||||
set_target_properties(cls_otp PROPERTIES
|
||||
VERSION "1.0.0"
|
||||
SOVERSION "1"
|
||||
INSTALL_RPATH ""
|
||||
CXX_VISIBILITY_PRESET hidden)
|
||||
install(TARGETS cls_otp DESTINATION ${cls_dir})
|
||||
|
||||
set(cls_otp_client_srcs
|
||||
otp/cls_otp_client.cc
|
||||
otp/cls_otp_types.cc
|
||||
)
|
||||
add_library(cls_otp_client STATIC ${cls_otp_client_srcs})
|
||||
set(cls_otp_client_srcs
|
||||
otp/cls_otp_client.cc
|
||||
otp/cls_otp_types.cc
|
||||
)
|
||||
add_library(cls_otp_client STATIC ${cls_otp_client_srcs})
|
||||
endif (WITH_RADOSGW)
|
||||
|
||||
# cls_refcount
|
||||
set(cls_refcount_srcs
|
||||
|
Loading…
Reference in New Issue
Block a user