From 3a099833344363cdd23e23f9e4e3499a3cc3c570 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Thu, 20 Oct 2022 10:57:04 +0200 Subject: [PATCH] [CMake] Make switches for server-only options dependent on XRCL_ONLY=FALSE Fixes: ff67c2a0 Closes: #1804 --- cmake/XRootDDefaults.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/XRootDDefaults.cmake b/cmake/XRootDDefaults.cmake index bbee8a275b5..5c25975bb29 100644 --- a/cmake/XRootDDefaults.cmake +++ b/cmake/XRootDDefaults.cmake @@ -9,6 +9,8 @@ if( "${CMAKE_BUILD_TYPE}" STREQUAL "" ) endif() endif() +include( CMakeDependentOption ) + define_default( PLUGIN_VERSION 5 ) option( ENABLE_FUSE "Enable the fuse filesystem driver if possible." TRUE ) option( ENABLE_CRYPTO "Enable the OpenSSL cryprography support." TRUE ) @@ -28,7 +30,7 @@ option( ENABLE_XRDEC "Enable erasure coding component." option( ENABLE_ASAN "Enable adress sanitizer." FALSE ) option( ENABLE_TSAN "Enable thread sanitizer." FALSE ) option( ENABLE_XRDCLHTTP "Enable xrdcl-http plugin." TRUE ) -option( ENABLE_SCITOKENS "Enable SciTokens plugin." TRUE ) -option( ENABLE_MACAROONS "Enable Macaroons plugin." TRUE ) +cmake_dependent_option( ENABLE_SCITOKENS "Enable SciTokens plugin." TRUE "NOT XRDCL_ONLY" FALSE ) +cmake_dependent_option( ENABLE_MACAROONS "Enable Macaroons plugin." TRUE "NOT XRDCL_ONLY" FALSE ) option( FORCE_ENABLED "Fail build if enabled components cannot be built." FALSE ) define_default( XRD_PYTHON_REQ_VERSION 3 )