cmake/sdlchecks.cmake
changeset 8244 bfea1a568a0a
parent 8159 427e8fdf6f69
child 8991 13b0df1793e8
     1.1 --- a/cmake/sdlchecks.cmake	Sat Feb 22 21:21:33 2014 -0500
     1.2 +++ b/cmake/sdlchecks.cmake	Sun Feb 23 01:10:33 2014 -0500
     1.3 @@ -556,9 +556,9 @@
     1.4  #
     1.5  macro(CheckCOCOA)
     1.6    if(VIDEO_COCOA)
     1.7 -    check_objc_source_compiles("
     1.8 -        #import <Cocoa/Cocoa.h>
     1.9 -        int main (int argc, char** argv) {}" HAVE_VIDEO_COCOA)
    1.10 +    if(APPLE) # Apple always has Cocoa.
    1.11 +      set(HAVE_VIDEO_COCOA TRUE)
    1.12 +    endif(APPLE)
    1.13      if(HAVE_VIDEO_COCOA)
    1.14        file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
    1.15        set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C)