Make sure Objective C files are built with the same flags as C files.

Fixes https://github.com/libsdl-org/SDL/issues/5707
This commit is contained in:
Sam Lantinga 2022-05-21 13:51:21 -07:00
parent e97b506242
commit 6da6a6cba2
1 changed files with 3 additions and 0 deletions

View File

@ -3122,3 +3122,6 @@ endif()
if(SDL_TEST)
add_subdirectory(test)
endif()
##### Fix Objective C builds #####
set(CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} ${CMAKE_C_FLAGS}")