From 1a3f315323a0b1d1affed01e85cbbf0a677718e8 Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Wed, 10 Jun 2020 09:45:48 +0800 Subject: [PATCH] Disable Werror Don't treat warnings as errors. This just leads to failures every time we upgrade the compiler. Upstream-Status: Inappropriate Signed-off-by: Anuj Mittal --- inference-engine/thirdparty/clDNN/CMakeLists.txt | 1 - ngraph/CMakeLists.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt index d14da47860..08ed695c0d 100644 --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt @@ -518,7 +518,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") MultiProcessorCompilation DeadCodeEliminate ExtensionsEnabled - TreatWarnAsErrorEnabled WarnLevel4 NoFastMath StackProtector diff --git a/ngraph/CMakeLists.txt b/ngraph/CMakeLists.txt index a05ca3b15c..ae888c4cb2 100644 --- a/ngraph/CMakeLists.txt +++ b/ngraph/CMakeLists.txt @@ -197,7 +197,6 @@ if (WIN32) endif() if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror") endif() if(WIN32) -- 2.32.0