From 670e4d2ae61dba89b8222fa221c2596a203e87ad Mon Sep 17 00:00:00 2001 From: Adrian Date: Sun, 21 Sep 2025 22:42:07 +0200 Subject: [PATCH] Use -Wno-deprecated-declarations on apple platforms --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 157f53bdb3..67fcd22ad2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -640,6 +640,10 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC) if(COMPILER_SUPPORTS_WNO_ERROR_DEPRECATED_DECLARATIONS) sdl_compile_options(PRIVATE "-Wno-error=deprecated-declarations") endif() + check_c_compiler_flag(-Wno-deprecated-declarations COMPILER_SUPPORTS_WNO_DEPRECATED_DECLARATIONS) + if(COMPILER_SUPPORTS_WNO_DEPRECATED_DECLARATIONS) + sdl_compile_options(PRIVATE "-Wno-deprecated-declarations") + endif() endif() if(APPLE)