mirror of
https://github.com/ceph/ceph
synced 2025-01-12 06:00:46 +00:00
cmake: check WITH_RADOSGW for fcgi and expat dependencies
The fcgi and expat libraries are only used by rgw, so only make them hard requirements if WITH_RADOSGW is set. Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
parent
3d3c61d4e8
commit
d5b41b7647
@ -240,13 +240,6 @@ find_package(leveldb REQUIRED)
|
||||
find_file(HAVE_LEVELDB_FILTER_POLICY leveldb/filter_policy.h PATHS ${LEVELDB_INCLUDE_DIR})
|
||||
endif(${WITH_LEVELDB})
|
||||
|
||||
option(WITH_EXPAT "EXPAT is here" ON)
|
||||
if(${WITH_EXPAT})
|
||||
find_package(EXPAT REQUIRED)
|
||||
endif(${WITH_EXPAT})
|
||||
|
||||
find_package(fcgi REQUIRED)
|
||||
|
||||
find_package(atomic_ops REQUIRED)
|
||||
message(STATUS "${ATOMIC_OPS_LIBRARIES}")
|
||||
if(NOT ${ATOMIC_OPS_FOUND})
|
||||
@ -325,6 +318,10 @@ endif(WITH_XIO)
|
||||
|
||||
#option for RGW
|
||||
option(WITH_RADOSGW "Rados Gateway is enabled" ON)
|
||||
if(WITH_RADOSGW)
|
||||
find_package(EXPAT REQUIRED)
|
||||
find_package(fcgi REQUIRED)
|
||||
endif(WITH_RADOSGW)
|
||||
|
||||
#option for CephFS
|
||||
option(WITH_CEPHFS "CephFS is enabled" ON)
|
||||
|
Loading…
Reference in New Issue
Block a user