mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 22:44:17 +00:00
cmake: don't error on apple when using deprecated declarations
This commit is contained in:
committed by
Anonymous Maarten
parent
274ec02581
commit
45da133999
@@ -123,6 +123,13 @@ if(APPLE)
|
||||
testnativecocoa.m
|
||||
testnativex11.c
|
||||
testutils.c)
|
||||
|
||||
cmake_push_check_state(RESET)
|
||||
check_c_compiler_flag(-Wno-error=deprecated-declarations HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
|
||||
cmake_pop_check_state()
|
||||
if(HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
|
||||
set_property(SOURCE "testnativecocoa.m" APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-error=deprecated-declarations")
|
||||
endif()
|
||||
elseif(WINDOWS)
|
||||
add_executable(testnative testnative.c testnativew32.c testutils.c)
|
||||
elseif(HAVE_X11)
|
||||
|
||||
4
test/configure
vendored
4
test/configure
vendored
@@ -4790,8 +4790,8 @@ fi
|
||||
|
||||
case "$host" in
|
||||
*-ios-*|*-*-darwin* )
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
|
||||
printf %s "checking for GCC -Werror option... " >&6; }
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
|
||||
printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
|
||||
have_gcc_wno_error_deprecated_declarations=no
|
||||
|
||||
save_CFLAGS="$CFLAGS"
|
||||
|
||||
@@ -241,7 +241,7 @@ fi
|
||||
|
||||
case "$host" in
|
||||
*-ios-*|*-*-darwin* )
|
||||
AC_MSG_CHECKING(for GCC -Werror option)
|
||||
AC_MSG_CHECKING(for GCC -Wno-error=deprecated-declarations option)
|
||||
have_gcc_wno_error_deprecated_declarations=no
|
||||
|
||||
save_CFLAGS="$CFLAGS"
|
||||
|
||||
Reference in New Issue
Block a user