Skip to content

Commit

Permalink
CMake: Enable/disable CEPH on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
ljanyst committed Feb 23, 2015
1 parent 72be0ed commit f90bcb7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/XRootDDefaults.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ define_default( ENABLE_LIBEVENT TRUE )
define_default( ENABLE_XRDCL TRUE )
define_default( ENABLE_TESTS FALSE )
define_default( ENABLE_HTTP TRUE )
define_default( ENABLE_CEPH TRUE )
define_default( PLUGIN_VERSION 4 )
9 changes: 9 additions & 0 deletions cmake/XRootDFindLibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,12 @@ if( ENABLE_HTTP )
set( BUILD_HTTP FALSE )
endif()
endif()

if( ENABLE_CEPH )
find_package( ceph )
if( CEPH_FOUND )
set( BUILD_CEPH TRUE )
else()
set( BUILD_CEPH FALSE )
endif()
endif()
2 changes: 2 additions & 0 deletions cmake/XRootDSummary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ component_status( LIBEVENT BUILD_LIBEVENT LIBEVENT_FOUND )
component_status( XRDCL ENABLE_XRDCL TRUE_VAR )
component_status( TESTS BUILD_TESTS CPPUNIT_FOUND )
component_status( HTTP BUILD_HTTP OPENSSL_FOUND )
component_status( CEPH BUILD_CEPH CEPH_FOUND )

message( STATUS "----------------------------------------" )
message( STATUS "Installation path: " ${CMAKE_INSTALL_PREFIX} )
Expand All @@ -26,4 +27,5 @@ message( STATUS "XrdCl: " ${STATUS_XRDCL} )
message( STATUS "LibEvent support: " ${STATUS_LIBEVENT} )
message( STATUS "Tests: " ${STATUS_TESTS} )
message( STATUS "HTTP support: " ${STATUS_HTTP} )
message( STATUS "CEPH support: " ${STATUS_CEPH} )
message( STATUS "----------------------------------------" )
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ if( BUILD_HTTP )
include( XrdHttp )
endif()

include( XrdCeph )
if( BUILD_CEPH )
include( XrdCeph )
endif()

#-------------------------------------------------------------------------------
# Install the utility scripts
Expand Down

0 comments on commit f90bcb7

Please sign in to comment.