From f16f683c3717d10f3ed1cc2416be8cf5622064a9 Mon Sep 17 00:00:00 2001 From: Stefan Wunsch Date: Tue, 16 Mar 2021 14:15:34 +0100 Subject: [PATCH] [cmake] Build only the library of the xrootd client - Enabled by the XRDCL_LIB_ONLY=ON cmake flag - Prevents building the client binaries such as xrdcp in our build dir but not exposing them in the installation Fixes #7441 --- builtins/xrootd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/builtins/xrootd/CMakeLists.txt b/builtins/xrootd/CMakeLists.txt index 23b2f8fda214a..77ea7485e01e3 100644 --- a/builtins/xrootd/CMakeLists.txt +++ b/builtins/xrootd/CMakeLists.txt @@ -47,6 +47,7 @@ ExternalProject_Add( -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} -DENABLE_PYTHON=OFF -DENABLE_CEPH=OFF + -DXRDCL_LIB_ONLY=ON ${XROOTD_WITH_OPENSSL3} -DCMAKE_INSTALL_RPATH:STRING=${XROOTD_PREFIX}/${XROOTD_LIBDIR} INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install