diff --git a/CMakePresets.json b/CMakePresets.json index c47ab3c13..a5b31fd4e 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -9,7 +9,8 @@ "CMAKE_CXX_EXTENSIONS": "OFF", "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", "SFML_BUILD_EXAMPLES": "ON", - "SFML_BUILD_TEST_SUITE": "ON" + "SFML_BUILD_TEST_SUITE": "ON", + "SFML_WARNINGS_AS_ERRORS": "ON" } } ] diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 5bb500198..60aa652eb 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -4,7 +4,7 @@ # Helper function to enable compiler warnings for a specific target function(set_target_warnings target) - option(SFML_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" TRUE) + option(SFML_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" FALSE) if(SFML_COMPILER_MSVC) target_compile_options(${target} PRIVATE