diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2014-02-23 01:10:33 -0500 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2014-02-23 01:10:33 -0500 |
commit | d9d6f699c90de12121ee009cc7e095a98acef34b (patch) | |
tree | 7dd7ce20176a134a588aa381c34edeba1a698574 /cmake | |
parent | 4b27b065e0d0244f1f2259d37116d41e4bf703ea (diff) |
CMake: Just assume Apple platforms have Cocoa support.
Fixes Bugzilla #2056.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/sdlchecks.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 15f06b05f1..2cd09e6fff 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -556,9 +556,9 @@ endmacro(CheckWayland) # macro(CheckCOCOA) if(VIDEO_COCOA) - check_objc_source_compiles(" - #import <Cocoa/Cocoa.h> - int main (int argc, char** argv) {}" HAVE_VIDEO_COCOA) + if(APPLE) # Apple always has Cocoa. + set(HAVE_VIDEO_COCOA TRUE) + endif(APPLE) if(HAVE_VIDEO_COCOA) file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m) set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) |