Browse Source

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

Fixes https://github.com/libsdl-org/SDL/issues/5707
Sam Lantinga 3 years ago
parent
commit
6da6a6cba2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

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