Skip to content
Snippets Groups Projects
Commit c7f5490e authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Merge branch 'ltowarn.CaloLumiConditions-20220126' into 'master'

CaloLumiConditions: Fix warnings seen when LTO is enabled.

See merge request !49955
parents 90b913b9 9618d5ba
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!49955CaloLumiConditions: Fix warnings seen when LTO is enabled.
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Declare the package name: # Declare the package name:
atlas_subdir( CaloLumiConditions ) atlas_subdir( CaloLumiConditions )
...@@ -12,6 +12,12 @@ atlas_add_library( CaloLumiConditions ...@@ -12,6 +12,12 @@ atlas_add_library( CaloLumiConditions
PUBLIC_HEADERS CaloLumiConditions PUBLIC_HEADERS CaloLumiConditions
LINK_LIBRARIES CxxUtils Identifier AthenaKernel LArElecCalib LINK_LIBRARIES CxxUtils Identifier AthenaKernel LArElecCalib
PRIVATE_LINK_LIBRARIES LArIdentifier LumiBlockData ) PRIVATE_LINK_LIBRARIES LArIdentifier LumiBlockData )
if( CMAKE_COMPILER_IS_GNUCXX )
# When we compile with -flto, we get bogus warnings about ODR violations
# from the multiversioned function CaloBCIDCoeffs::calc().
# Just suppress the warnings for now.
set_target_properties( CaloLumiConditions PROPERTIES COMPILE_FLAGS "-Wno-odr -Wno-lto-type-mismatch" LINK_FLAGS "-Wno-odr -Wno-lto-type-mismatch" )
endif()
atlas_add_test( CaloBCIDCoeffs_test atlas_add_test( CaloBCIDCoeffs_test
SOURCES SOURCES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment