CMake: Just assume Apple platforms have Cocoa support.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 23 Feb 2014 01:10:33 -0500
changeset 8244bfea1a568a0a
parent 8243 f905dd0f0f83
child 8245 2c63c27c4d1d
CMake: Just assume Apple platforms have Cocoa support.

Fixes Bugzilla #2056.
cmake/sdlchecks.cmake
     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)