Don't treat compiler warnings as errors by default

So that new warnings don't cause issues for library consumers.

Instead use CMake's CMAKE_COMPILE_WARNING_AS_ERROR option to treat them as errors in CI.
This commit is contained in:
Oliver Hamlet
2025-10-03 17:39:11 +01:00
parent 6c951c648d
commit 24e3f99d9e
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -181,7 +181,6 @@ endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(loot PRIVATE
"-Werror"
"-Wall"
"-Wextra"
"-Wpedantic"
@@ -211,7 +210,6 @@ if(MSVC)
"/permissive-"
"/W4"
"/Wall"
"/WX"
"/wd4514"
"/wd4623"
"/wd4625"