ensure that we actually link the OpenGL library on macOS

This commit is contained in:
Nadia Holmquist Pedersen 2024-07-07 13:45:45 +02:00
parent 1302cbdd64
commit b55eb431bd
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ elseif (APPLE)
find_library(COCOA_LIB Cocoa) find_library(COCOA_LIB Cocoa)
target_link_libraries(melonDS PRIVATE ${COCOA_LIB}) target_link_libraries(melonDS PRIVATE ${COCOA_LIB})
endif() endif()
find_library(OPENGL_LIB OpenGL)
target_link_libraries(melonDS PRIVATE ${OPENGL_LIB})
target_sources(melonDS PRIVATE target_sources(melonDS PRIVATE
../duckstation/gl/context_agl.mm ../duckstation/gl/context_agl.mm
) )