diff --git a/Control/IOVSvc/CMakeLists.txt b/Control/IOVSvc/CMakeLists.txt index 579dd412950e849e8004984710ea9a6a759cf722..da36caa7bd3d146f577d01afdb4695c9d6c6f897 100644 --- a/Control/IOVSvc/CMakeLists.txt +++ b/Control/IOVSvc/CMakeLists.txt @@ -20,14 +20,16 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( Boost COMPONENTS filesystem thread system ) +find_package( ROOT COMPONENTS Core ) # Component(s) in the package: atlas_add_library( IOVSvcLib src/*.cxx PUBLIC_HEADERS IOVSvc INCLUDE_DIRS ${Boost_INCLUDE_DIRS} + PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools GaudiKernel StoreGateLib SGtests xAODEventInfo PersistentDataModel - PRIVATE_LINK_LIBRARIES TestTools EventInfo ) + PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} TestTools EventInfo ) atlas_add_component( IOVSvc src/components/*.cxx diff --git a/Control/IOVSvc/src/CondInputLoader.cxx b/Control/IOVSvc/src/CondInputLoader.cxx index 363f95f27241b7c59a7d8b932a6ca4217432b002..dc20a9fdb0f75a525f4f90d416944591912255e5 100644 --- a/Control/IOVSvc/src/CondInputLoader.cxx +++ b/Control/IOVSvc/src/CondInputLoader.cxx @@ -243,7 +243,7 @@ CondInputLoader::start() CondContainer::CondContFactory::Instance().Create( ditr->clid(), ditr->key() ); if (cb == 0) { // try to force a load of libraries using ROOT - TClass::GetClass (tp.c_str()); + (void)TClass::GetClass (tp.c_str()); cb = CondContainer::CondContFactory::Instance().Create( ditr->clid(), ditr->key() ); }