mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
cmake: cocoa video backend needs IOKit framework
Fixes libsdl-org/SDL#11628
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user