Navigation Menu

Skip to content

Commit

Permalink
CMake: Just assume Apple platforms have Cocoa support.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #2056.
  • Loading branch information
icculus committed Feb 23, 2014
1 parent f9f2bc5 commit 295acea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/sdlchecks.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit 295acea

Please sign in to comment.