CMakeLists.txt
changeset 11323 46861f3fc187
parent 11320 6b36980ae340
child 11324 670978408a10
equal deleted inserted replaced
11322:4275bb4b49f4 11323:46861f3fc187
  1324 
  1324 
  1325   # Requires the darwin file implementation
  1325   # Requires the darwin file implementation
  1326   if(SDL_FILE)
  1326   if(SDL_FILE)
  1327     file(GLOB EXTRA_SOURCES ${SDL2_SOURCE_DIR}/src/file/cocoa/*.m)
  1327     file(GLOB EXTRA_SOURCES ${SDL2_SOURCE_DIR}/src/file/cocoa/*.m)
  1328     set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
  1328     set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
       
  1329     # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
  1329     set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
  1330     set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
  1330     set(HAVE_SDL_FILE TRUE)
  1331     set(HAVE_SDL_FILE TRUE)
  1331     set(SDL_FRAMEWORK_COCOA 1)
  1332     set(SDL_FRAMEWORK_COCOA 1)
  1332     set(SDL_FRAMEWORK_COREVIDEO 1)
  1333     set(SDL_FRAMEWORK_COREVIDEO 1)
  1333   else()
  1334   else()
  1394   endif(SDL_TIMERS)
  1395   endif(SDL_TIMERS)
  1395 
  1396 
  1396   if(SDL_FILESYSTEM)
  1397   if(SDL_FILESYSTEM)
  1397     set(SDL_FILESYSTEM_COCOA 1)
  1398     set(SDL_FILESYSTEM_COCOA 1)
  1398     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
  1399     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
       
  1400     # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
  1399     set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C)
  1401     set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C)
  1400     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1402     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1401     set(HAVE_SDL_FILESYSTEM TRUE)
  1403     set(HAVE_SDL_FILESYSTEM TRUE)
  1402   endif()
  1404   endif()
  1403 
  1405