From 29184f4475db7554271f355549c1c4891bc82cbe Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 16 Sep 2019 09:50:21 +0200 Subject: [PATCH] System : Disable warnings --- ThirdParty/NRLib/CMakeLists.txt | 4 ++++ ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ThirdParty/NRLib/CMakeLists.txt b/ThirdParty/NRLib/CMakeLists.txt index 6b0f1a261e..9b7680f67b 100644 --- a/ThirdParty/NRLib/CMakeLists.txt +++ b/ThirdParty/NRLib/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 2.8.12) project (NRLib) +if (CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations") +endif() + include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/nrlib diff --git a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt index d54ae136a9..11db6a10df 100644 --- a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt +++ b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 2.8.12) project (custom-opm-flowdiag-app) +if (CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations") +endif() + include_directories( ../custom-opm-flowdiagnostics/opm-flowdiagnostics opm-flowdiagnostics-applications