cmake: Apple did not test SDL_CAMERA before adding camera support

This commit is contained in:
Anonymous Maarten authored and Ryan C. Gordon committed 2024-02-22 07:18:22 -05:00
1 parent e176626bac
commit 7b1127d1fe
1 file changed
+6 -4
+6 -4
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)