From 75b0c3a9a1bb5aacc7b19bc896795f5e5aec7219 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 11 Dec 2022 14:37:06 -0700 Subject: [PATCH] Disable warnings as errors for Clang on Windows --- cmake/CompilerWarnings.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index b4e5b3a1a..a26cc8f46 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -69,9 +69,8 @@ function(set_file_warnings) ${NON_ANDROID_CLANG_AND_GCC_WARNINGS} ) - # 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) + # Disable warnings as errors when using Clang on Windows to work around deprecation warnings in Windows APIs + if(SFML_OS_WINDOWS AND (SFML_COMPILER_CLANG OR SFML_COMPILER_CLANG_CL)) set(WARNINGS_AS_ERRORS FALSE) endif()