try again for osx
This commit is contained in:
parent
af400b446b
commit
e9eec9f97e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue