cmake/sdlchecks.cmake
changeset 7182 1089a8a701c3
parent 7078 a2bddc1fb02f
child 7266 6caad66a4966
     1.1 --- a/cmake/sdlchecks.cmake	Thu May 16 00:48:20 2013 -0700
     1.2 +++ b/cmake/sdlchecks.cmake	Thu May 16 00:52:33 2013 -0700
     1.3 @@ -449,11 +449,12 @@
     1.4  #
     1.5  macro(CheckCOCOA)
     1.6    if(VIDEO_COCOA)
     1.7 -    check_c_source_compiles("
     1.8 +    check_objc_source_compiles("
     1.9          #import <Cocoa/Cocoa.h>
    1.10          int main (int argc, char** argv) {}" HAVE_VIDEO_COCOA)
    1.11      if(HAVE_VIDEO_COCOA)
    1.12        file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
    1.13 +      set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C)
    1.14        set(SOURCE_FILES ${SOURCE_FILES} ${COCOA_SOURCES})
    1.15        set(SDL_VIDEO_DRIVER_COCOA 1)
    1.16        set(HAVE_SDL_VIDEO TRUE)