Skip to content

TDAQ COOL/CORAL Usage, master branch (2021.07.22.)

Taught Findtdaq-common.cmake to make tdaq-common's externals visible. This is meant for ATDBOPS-116.

If a directory with TDAQ's naming convention exists in the tdaq-common installation tree, it is added to CMAKE_PREFIX_PATH for AtlasLCG's find-modules to be able to use it. For the moment this would allow FindCOOL.cmake and FindCORAL.cmake to set up the COOL/CORAL installations from the tdaq-common installations that already come with those.

For this to work as intended, one must call find_package(tdaq-common) already in the Athena project configuration. But since we "find" Gaudi also already in the project configuration, this should not be too much of an issue.

With this included, one gets the following kind of output from Athena's configuration:

...
-- Setting up the tdaq-common externals...
-- Found tdaq-common: /cvmfs/atlas-nightlies.cern.ch/repo/sw/master--dev4LCG_Athena_x86_64-centos7-gcc8-opt/2021-07-22T0600/tdaq-common/tdaq-common-99-00-00/installed/include
...
-- Configuring the build of package: AthenaDBTestRec
-- Found COOL: /cvmfs/atlas-nightlies.cern.ch/repo/sw/master--dev4LCG_Athena_x86_64-centos7-gcc8-opt/2021-07-22T0600/tdaq-common/tdaq-common-99-00-00/installed/external/x86_64-centos7-gcc8-opt/include  
-- Found CORAL: /cvmfs/atlas-nightlies.cern.ch/repo/sw/master--dev4LCG_Athena_x86_64-centos7-gcc8-opt/2021-07-22T0600/tdaq-common/tdaq-common-99-00-00/installed/external/x86_64-centos7-gcc8-opt/include  
-- Configuring the build of package: AthenaPoolMultiTest
-- Found CORAL: /cvmfs/atlas-nightlies.cern.ch/repo/sw/master--dev4LCG_Athena_x86_64-centos7-gcc8-opt/2021-07-22T0600/tdaq-common/tdaq-common-99-00-00/installed/external/x86_64-centos7-gcc8-opt/include
...

And I tested, the build even succeeds. 😉

P.S. I left the "Setting up the tdaq-common externals..." text in for debugging purposes for the moment. Later on we'll probably want to remove it.

Merge request reports