CMakeLists.txt
changeset 11323 46861f3fc187
parent 11320 6b36980ae340
child 11324 670978408a10
     1.1 --- a/CMakeLists.txt	Fri Aug 18 19:53:40 2017 -0400
     1.2 +++ b/CMakeLists.txt	Fri Aug 18 20:00:29 2017 -0400
     1.3 @@ -1326,6 +1326,7 @@
     1.4    if(SDL_FILE)
     1.5      file(GLOB EXTRA_SOURCES ${SDL2_SOURCE_DIR}/src/file/cocoa/*.m)
     1.6      set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
     1.7 +    # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
     1.8      set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
     1.9      set(HAVE_SDL_FILE TRUE)
    1.10      set(SDL_FRAMEWORK_COCOA 1)
    1.11 @@ -1396,6 +1397,7 @@
    1.12    if(SDL_FILESYSTEM)
    1.13      set(SDL_FILESYSTEM_COCOA 1)
    1.14      file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
    1.15 +    # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
    1.16      set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C)
    1.17      set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
    1.18      set(HAVE_SDL_FILESYSTEM TRUE)