From 4331861c8d41517ae69b2dadee7ec4fa0f42f88b Mon Sep 17 00:00:00 2001 From: Dmitry Popov <Dmitry.Popov@cern.ch> Date: Sun, 14 Jan 2018 18:54:35 +0100 Subject: [PATCH] Disable suggest-override warnings in LHCb tests --- LHCbG4Tests/G4HadronicXSectionsTest/CMakeLists.txt | 3 +++ LHCbG4Tests/G4MScInThinLayerTest/CMakeLists.txt | 3 +++ LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt | 3 +++ LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt | 3 +++ 4 files changed, 12 insertions(+) diff --git a/LHCbG4Tests/G4HadronicXSectionsTest/CMakeLists.txt b/LHCbG4Tests/G4HadronicXSectionsTest/CMakeLists.txt index 17fa330..e347619 100644 --- a/LHCbG4Tests/G4HadronicXSectionsTest/CMakeLists.txt +++ b/LHCbG4Tests/G4HadronicXSectionsTest/CMakeLists.txt @@ -28,4 +28,7 @@ gaudi_add_executable(G4HadronicXSectionsTest add_dependencies(G4HadronicXSectionsTest Geant4) +# Dirty fix to disable the pesky warning +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override") + gaudi_install_scripts() diff --git a/LHCbG4Tests/G4MScInThinLayerTest/CMakeLists.txt b/LHCbG4Tests/G4MScInThinLayerTest/CMakeLists.txt index 834a1be..9ddb1b8 100644 --- a/LHCbG4Tests/G4MScInThinLayerTest/CMakeLists.txt +++ b/LHCbG4Tests/G4MScInThinLayerTest/CMakeLists.txt @@ -26,4 +26,7 @@ gaudi_add_executable(G4MScInThinLayerTest add_dependencies(G4MScInThinLayerTest Geant4) +# Dirty fix to disable the pesky warning +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override") + gaudi_install_scripts() diff --git a/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt b/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt index 3c5127b..0cd59f1 100644 --- a/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt +++ b/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt @@ -39,4 +39,7 @@ gaudi_add_executable(G4RichTbSimHTest add_dependencies(G4RichTbSimHTest Geant4) +# Dirty fix to disable the pesky warning +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override") + gaudi_install_scripts() diff --git a/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt b/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt index 4d06859..f04a0d5 100644 --- a/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt +++ b/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt @@ -25,4 +25,7 @@ gaudi_add_executable(G4SamplingCaloTest add_dependencies(G4SamplingCaloTest Geant4) +# Dirty fix to disable the pesky warning +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override") + gaudi_install_scripts() -- GitLab