Skip to content

Commit

Permalink
[CMake] Build xrdcl-http by default if davix is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Apr 26, 2022
1 parent 9f38539 commit 1210553
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/XRootDDefaults.cmake
Expand Up @@ -27,5 +27,5 @@ option( ENABLE_VOMS "Enable VOMS plug-in if possible."
option( ENABLE_XRDEC "Enable erasure coding component." FALSE )
option( ENABLE_ASAN "Enable adress sanitizer." FALSE )
option( ENABLE_OPENSSL3 "Enable openssl3 support." TRUE )
option( ENABLE_XRDCLHTTP "Enable xrdcl-http plugin." FALSE )
option( ENABLE_XRDCLHTTP "Enable xrdcl-http plugin." TRUE )
define_default( XRD_PYTHON_REQ_VERSION 2.4 )
7 changes: 6 additions & 1 deletion cmake/XRootDFindLibs.cmake
Expand Up @@ -147,5 +147,10 @@ if( ENABLE_VOMS AND (LINUX OR KFREEBSD OR Hurd) )
endif()

if( ENABLE_XRDCLHTTP )
find_package( Davix REQUIRED )
find_package( Davix )
if( DAVIX_FOUND )
set( BUILD_XRDCLHTTP TRUE )
else()
set( BUILD_XRDCLHTTP FALSE )
endif()
endif()
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -40,7 +40,7 @@ if( ENABLE_XRDCL )
add_subdirectory( XrdCl )
endif()

if( ENABLE_XRDCLHTTP )
if( BUILD_XRDCLHTTP )
add_subdirectory( XrdClHttp )
endif()

Expand Down

0 comments on commit 1210553

Please sign in to comment.