diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cd52e8..382e3e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()