From e42d4c062feab0bb441be69f8d6d84b653860122 Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <fwinkl@cern>
Date: Tue, 23 Mar 2021 09:57:45 +0100
Subject: [PATCH] TrigConf: add missing Oracle dependnecies

Add missing `Oracle` and `cx_Oracle` dependencies for the trigger
configuration packages to make sure the environment is correctly setup
also in the DetCommon build.

Relates to ATLINFR-3977.
---
 Trigger/TrigConfiguration/TrigConfIO/CMakeLists.txt    | 2 ++
 Trigger/TrigConfiguration/TrigConfigSvc/CMakeLists.txt | 3 ++-
 Trigger/TrigT1/L1Topo/L1TopoConfig/CMakeLists.txt      | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Trigger/TrigConfiguration/TrigConfIO/CMakeLists.txt b/Trigger/TrigConfiguration/TrigConfIO/CMakeLists.txt
index bc1512e56f0b..d056220950aa 100644
--- a/Trigger/TrigConfiguration/TrigConfIO/CMakeLists.txt
+++ b/Trigger/TrigConfiguration/TrigConfIO/CMakeLists.txt
@@ -5,6 +5,8 @@ atlas_subdir( TrigConfIO )
 
 # External dependencies:
 find_package( Boost )
+find_package( Oracle )     # Oracle client libraries for DB access
+find_package( cx_Oracle )  # Oracle python client
 find_package( nlohmann_json )
 find_package( CORAL COMPONENTS CoralBase CoralKernel RelationalAccess )
 
diff --git a/Trigger/TrigConfiguration/TrigConfigSvc/CMakeLists.txt b/Trigger/TrigConfiguration/TrigConfigSvc/CMakeLists.txt
index 39beedaaf794..403be78b6b13 100644
--- a/Trigger/TrigConfiguration/TrigConfigSvc/CMakeLists.txt
+++ b/Trigger/TrigConfiguration/TrigConfigSvc/CMakeLists.txt
@@ -6,7 +6,8 @@ atlas_subdir( TrigConfigSvc )
 # External dependencies:
 find_package( Boost )
 find_package( COOL COMPONENTS CoolKernel )
-find_package( cx_Oracle )
+find_package( Oracle )     # Oracle client libraries for DB access
+find_package( cx_Oracle )  # Oracle python client
 find_package( nlohmann_json )
 
 atlas_add_component( TrigConfigSvc
diff --git a/Trigger/TrigT1/L1Topo/L1TopoConfig/CMakeLists.txt b/Trigger/TrigT1/L1Topo/L1TopoConfig/CMakeLists.txt
index e98f97b76bd3..098bafc99823 100644
--- a/Trigger/TrigT1/L1Topo/L1TopoConfig/CMakeLists.txt
+++ b/Trigger/TrigT1/L1Topo/L1TopoConfig/CMakeLists.txt
@@ -1,10 +1,12 @@
-# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 
 # Declare the package name:
 atlas_subdir( L1TopoConfig )
 
 # External dependencies:
 find_package( Boost )
+find_package( Oracle )     # Oracle client libraries for DB access
+find_package( cx_Oracle )  # Oracle python client
 
 # Component(s) in the package:
 atlas_add_library( L1TopoConfig
-- 
GitLab