From cfed0ece61eea04583c3b462f5b32a7f6565bb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Tue, 26 Sep 2023 14:33:04 -0400 Subject: [PATCH] build(cmake): disable warnings as errors --- cmake/warnings.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index bc25a57f9f..f0164d3a8e 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -24,7 +24,8 @@ cmake_minimum_required(VERSION 3.15) -option(${projectPrefix}WARNINGS_AS_ERRORS "Treat compiler warnings as errors" ON) +option(${projectPrefix}WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF) +set(CMAKE_COMPILE_WARNING_AS_ERROR OFF) macro(_set_flags) set(MSVC_WARNINGS @@ -71,7 +72,7 @@ macro(_set_flags) -Wdangling-else # warn about constructions where there may be confusion to which if statement an else branch belongs ) - set(CLANG_WARNINGS ${GCC_COMMON_WARNINGS}) + set(CLANG_WARNINGS ${GCC_COMMON_WARNINGS} -Wno-error=read-modules-implicitly) set(GCC_WARNINGS ${GCC_COMMON_WARNINGS}