From 964938e8765a2600025ba44a4a4f2eb3dbb91cdb Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch> Date: Wed, 9 Dec 2020 11:01:18 +0100 Subject: [PATCH] Made xAODCaloEventAthenaPool build as part of AthAnalysis. --- Event/xAOD/xAODCaloEventAthenaPool/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Event/xAOD/xAODCaloEventAthenaPool/CMakeLists.txt b/Event/xAOD/xAODCaloEventAthenaPool/CMakeLists.txt index 701b8380bb5..5e44cc744b9 100644 --- a/Event/xAOD/xAODCaloEventAthenaPool/CMakeLists.txt +++ b/Event/xAOD/xAODCaloEventAthenaPool/CMakeLists.txt @@ -3,6 +3,12 @@ # Declare the package name: atlas_subdir( xAODCaloEventAthenaPool ) +# Extra libraries, depending on the build environment. +set( extra_libs ) +if( NOT XAOD_ANALYSIS ) + set( extraLibs CaloInterfaceLib ) +endif() + # Component(s) in the package: atlas_add_poolcnv_library( xAODCaloEventAthenaPoolPoolCnv src/*.h src/*.cxx @@ -13,9 +19,8 @@ atlas_add_poolcnv_library( xAODCaloEventAthenaPoolPoolCnv TYPES_WITH_NAMESPACE xAOD::CaloClusterContainer xAOD::CaloClusterAuxContainer xAOD::CaloTowerContainer xAOD::CaloTowerAuxContainer CNV_PFX xAOD - LINK_LIBRARIES CaloInterfaceLib AthContainers AthenaKernel - AthenaPoolCnvSvcLib AthenaPoolUtilities xAODCaloEvent - GaudiKernel ) + LINK_LIBRARIES AthContainers AthenaKernel AthenaPoolCnvSvcLib + AthenaPoolUtilities xAODCaloEvent GaudiKernel ${extra_libs} ) # Install files from the package. atlas_install_joboptions( share/*.py ) -- GitLab