cmake: cocoa video backend needs IOKit framework

Fixes libsdl-org/SDL#11628
This commit is contained in:
Anonymous Maarten 2024-12-28 03:41:36 +01:00
parent 38dd6bcd32
commit e25cc7a88f

View file

@ -629,6 +629,7 @@ macro(CheckCOCOA)
endif() endif()
if(HAVE_COCOA) if(HAVE_COCOA)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/cocoa/*.m") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/cocoa/*.m")
set(SDL_FRAMEWORK_IOKIT 1)
set(SDL_VIDEO_DRIVER_COCOA 1) set(SDL_VIDEO_DRIVER_COCOA 1)
set(HAVE_SDL_VIDEO TRUE) set(HAVE_SDL_VIDEO TRUE)
endif() endif()