Only apply fix to standalone builds (non-libretro)

This isn't necessary for the libretro cores, and also breaks the tvOS core
This commit is contained in:
OpenSauce04 2026-06-04 22:27:25 +01:00 committed by OpenSauce
parent 8e0dea381e
commit 8d52cb3da6

View file

@ -409,11 +409,13 @@ if (APPLE)
# Umbrella framework for everything GUI-related
find_library(COCOA_LIBRARY Cocoa REQUIRED)
endif()
if (NOT ENABLE_LIBRETRO)
find_library(IOKIT_LIBRARY IOKit REQUIRED)
find_library(QUARTZCORE_LIBRARY QuartzCore REQUIRED)
endif()
find_library(AVFOUNDATION_LIBRARY AVFoundation REQUIRED)
find_library(IOKIT_LIBRARY IOKit REQUIRED)
find_library(IOSURFACE_LIBRARY IOSurface REQUIRED)
find_library(QUARTZCORE_LIBRARY QuartzCore REQUIRED)
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${AVFOUNDATION_LIBRARY} ${IOSURFACE_LIBRARY} ${IOKIT_LIBRARY} ${MOLTENVK_LIBRARY} ${QUARTZCORE_LIBRARY})
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${AVFOUNDATION_LIBRARY} ${IOSURFACE_LIBRARY} ${IOKIT_LIBRARY} ${MOLTENVK_LIBRARY} ${QUARTZCORE_LIBRARY})
if (ENABLE_VULKAN AND NOT ENABLE_LIBRETRO)
if (NOT USE_SYSTEM_MOLTENVK)