CMake: Link to IOKit on Mac

This commit is contained in:
Connor McLaughlin 2021-06-20 19:21:51 +10:00
parent 9027864d3d
commit 0f564885dc
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ if(WIN32)
target_link_libraries(frontend-common PRIVATE d3d11.lib dxgi.lib)
endif()
if(APPLE)
find_library(IOK_LIBRARY IOKit REQUIRED)
target_link_libraries(frontend-common PRIVATE "${IOK_LIBRARY}")
endif()
if(SDL2_FOUND)
target_sources(frontend-common PRIVATE
sdl_audio_stream.cpp