mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 22:18:28 +00:00
Use -Wno-deprecated-declarations on apple platforms
This commit is contained in:
@@ -640,6 +640,10 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
|
|||||||
if(COMPILER_SUPPORTS_WNO_ERROR_DEPRECATED_DECLARATIONS)
|
if(COMPILER_SUPPORTS_WNO_ERROR_DEPRECATED_DECLARATIONS)
|
||||||
sdl_compile_options(PRIVATE "-Wno-error=deprecated-declarations")
|
sdl_compile_options(PRIVATE "-Wno-error=deprecated-declarations")
|
||||||
endif()
|
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()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
Reference in New Issue
Block a user