From e9eec9f97e33ed4a3242ff756e5aa856420fbee2 Mon Sep 17 00:00:00 2001 From: lif <> Date: Sun, 3 Mar 2024 02:08:31 -0800 Subject: [PATCH] try again for osx --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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()