diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 395075a35..a4adde8bf 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -6,12 +6,6 @@ function(set_target_warnings target) option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" TRUE) - # For now if we're using MSVC-like clang interface on Windows - # we'll disable warnings as errors - if(SFML_OS_WINDOWS AND SFML_COMPILER_CLANG_CL) - set(WARNINGS_AS_ERRORS FALSE) - endif() - if(SFML_COMPILER_MSVC) target_compile_options(${target} PRIVATE $<$:/WX> @@ -79,7 +73,7 @@ function(set_target_warnings target) ) endif() - if(SFML_COMPILER_CLANG) + if(SFML_COMPILER_CLANG OR SFML_COMPILER_CLANG_CL) target_compile_options(${target} PRIVATE -Wno-unknown-warning-option # do not warn on GCC-specific warning diagnostic pragmas )