Skip to content

Commit

Permalink
build(cmake): disable warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 2, 2023
1 parent 4fba8a4 commit cfed0ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit cfed0ec

Please sign in to comment.