cmake: Apple did not test SDL_CAMERA before adding camera support

main
Anonymous Maarten 2024-02-22 08:26:52 +01:00 committed by Ryan C. Gordon
parent e176626bac
commit 7b1127d1fe
1 changed files with 6 additions and 4 deletions

View File

@ -2081,11 +2081,13 @@ elseif(APPLE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/file/cocoa/*.m") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/file/cocoa/*.m")
if(SDL_CAMERA)
if(IOS OR TVOS OR MACOSX OR DARWIN) if(IOS OR TVOS OR MACOSX OR DARWIN)
set(SDL_CAMERA_DRIVER_COREMEDIA 1) set(SDL_CAMERA_DRIVER_COREMEDIA 1)
set(HAVE_CAMERA TRUE) set(HAVE_CAMERA TRUE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/coremedia/*.m") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/coremedia/*.m")
endif() endif()
endif()
if(IOS OR TVOS OR VISIONOS) if(IOS OR TVOS OR VISIONOS)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/misc/ios/*.m") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/misc/ios/*.m")