cmake: Apple did not test SDL_CAMERA before adding camera support

This commit is contained in:
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,10 +2081,12 @@ elseif(APPLE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/file/cocoa/*.m")
if(IOS OR TVOS OR MACOSX OR DARWIN)
set(SDL_CAMERA_DRIVER_COREMEDIA 1)
set(HAVE_CAMERA TRUE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/coremedia/*.m")
if(SDL_CAMERA)
if(IOS OR TVOS OR MACOSX OR DARWIN)
set(SDL_CAMERA_DRIVER_COREMEDIA 1)
set(HAVE_CAMERA TRUE)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/coremedia/*.m")
endif()
endif()
if(IOS OR TVOS OR VISIONOS)