cmake: build OBJC sources with warning & error flags, ignoring deprecated declarations

This commit is contained in:
Anonymous Maarten
2024-03-06 22:21:24 +01:00
committed by Anonymous Maarten
parent 59ab5c0824
commit 3cc4705dd2
2 changed files with 22 additions and 16 deletions

View File

@@ -589,7 +589,6 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
cmake_pop_check_state()
if(APPLE)
# FIXME: don't use deprecated declarations
check_c_compiler_flag(-Wno-error=deprecated-declarations COMPILER_SUPPORTS_WNO_ERROR_DEPRECATED_DECLARATIONS)
if(COMPILER_SUPPORTS_WNO_ERROR_DEPRECATED_DECLARATIONS)
sdl_compile_options(PRIVATE "-Wno-error=deprecated-declarations")