mirror of
https://github.com/yawut/SDL.git
synced 2026-04-26 09:07:00 -05:00
CMake: Just assume Apple platforms have Cocoa support.
Fixes Bugzilla #2056.
This commit is contained in:
parent
4b27b065e0
commit
d9d6f699c9
|
|
@ -556,9 +556,9 @@ endmacro(CheckWayland)
|
||||||
#
|
#
|
||||||
macro(CheckCOCOA)
|
macro(CheckCOCOA)
|
||||||
if(VIDEO_COCOA)
|
if(VIDEO_COCOA)
|
||||||
check_objc_source_compiles("
|
if(APPLE) # Apple always has Cocoa.
|
||||||
#import <Cocoa/Cocoa.h>
|
set(HAVE_VIDEO_COCOA TRUE)
|
||||||
int main (int argc, char** argv) {}" HAVE_VIDEO_COCOA)
|
endif(APPLE)
|
||||||
if(HAVE_VIDEO_COCOA)
|
if(HAVE_VIDEO_COCOA)
|
||||||
file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
|
file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
|
||||||
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C)
|
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user