try again for osx

This commit is contained in:
lif 2024-03-03 02:08:31 -08:00
parent af400b446b
commit e9eec9f97e
1 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,11 @@ project(cgbwebcam)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# i think SDL should be setting this
if(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-framework AVFoundation")
endif()
set(SDL_STATIC ON)
set(SDL_SHARED OFF)
@ -38,7 +43,3 @@ include_directories(mgba/include)
add_executable(cgbwebcam main.c)
target_link_libraries(cgbwebcam SDL3-static mgba)
if(APPLE)
target_link_libraries(cgbwebcam PRIVATE "-framework AVFoundation")
endif()