Skip to content

Commit

Permalink
build(cmake): disable -Werror on Clang modules
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Sep 26, 2023
1 parent 4fba8a4 commit 437557b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
cmake_minimum_required(VERSION 3.15)

option(${projectPrefix}WARNINGS_AS_ERRORS "Treat compiler warnings as errors" ON)
if(${projectPrefix}BUILD_MODULES AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Workaround <https://github.com/llvm/llvm-project/issues/54574>.
set(${projectPrefix}WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
endif()

macro(_set_flags)
set(MSVC_WARNINGS
Expand Down

0 comments on commit 437557b

Please sign in to comment.