From 59616d5c65d427576976822e4a39689c0c78041d Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 16 Sep 2019 09:45:35 +0200 Subject: [PATCH] AppFwk : Disable some warnings --- Fwk/VizFwk/LibCore/CMakeLists.txt | 4 ++++ Fwk/VizFwk/LibRender/CMakeLists.txt | 2 +- Fwk/VizFwk/LibViewing/CMakeLists.txt | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Fwk/VizFwk/LibCore/CMakeLists.txt b/Fwk/VizFwk/LibCore/CMakeLists.txt index b16ca5e051..3fd911b689 100644 --- a/Fwk/VizFwk/LibCore/CMakeLists.txt +++ b/Fwk/VizFwk/LibCore/CMakeLists.txt @@ -6,6 +6,10 @@ project(LibCore) # Use our strict compile flags set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}") +if (CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations") +endif() + set(CEE_HEADER_FILES cvfArray.h cvfArray.inl diff --git a/Fwk/VizFwk/LibRender/CMakeLists.txt b/Fwk/VizFwk/LibRender/CMakeLists.txt index 3d2871a930..78c0f2a7fc 100644 --- a/Fwk/VizFwk/LibRender/CMakeLists.txt +++ b/Fwk/VizFwk/LibRender/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}") # For now, disable warning about unknown pragmas locally here (due to usage of OpenMP) # Probably need to do this more centralized whenever we use OpenMP more extensively if (CMAKE_COMPILER_IS_GNUCXX) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas -Wno-deprecated -Wno-deprecated-declarations") endif() # For now, remove pedantic flag for OSX since it clashes with glew diff --git a/Fwk/VizFwk/LibViewing/CMakeLists.txt b/Fwk/VizFwk/LibViewing/CMakeLists.txt index c78e39442e..bf1ef031c5 100644 --- a/Fwk/VizFwk/LibViewing/CMakeLists.txt +++ b/Fwk/VizFwk/LibViewing/CMakeLists.txt @@ -6,6 +6,10 @@ project(LibViewing) # Use our strict compile flags set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}") +if (CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations") +endif() + set(CEE_HEADER_FILES cvfClipPlaneSet.h cvfConstantFrameRate.h