From 295acea953eecd7ef2b6ca8047603b87b6744122 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 23 Feb 2014 01:10:33 -0500 Subject: [PATCH] CMake: Just assume Apple platforms have Cocoa support. Fixes Bugzilla #2056. --- cmake/sdlchecks.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 15f06b05f1cd0..2cd09e6ffff5b 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 - 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)