CMake: Fixed build on Mac OS X.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 24 Feb 2014 11:24:48 -0500
changeset 8248 427d0a6f5af7
parent 8247 fd220c4df418
child 8249 294f28074ecc
CMake: Fixed build on Mac OS X.
CMakeLists.txt
--- a/CMakeLists.txt	Mon Feb 24 10:25:02 2014 -0300
+++ b/CMakeLists.txt	Mon Feb 24 11:24:48 2014 -0500
@@ -991,6 +991,7 @@
   if(SDL_FILESYSTEM)
     set(SDL_FILESYSTEM_COCOA 1)
     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
+    set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C)
     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
     set(HAVE_SDL_FILESYSTEM TRUE)
   endif()