From f81d8ee1462333c61f09c3fa32c3a4dc055c09fd Mon Sep 17 00:00:00 2001 From: e-erdal Date: Mon, 31 Jan 2022 19:16:08 +0300 Subject: [PATCH] Add IOKit for Metal backend --- cmake/bgfx.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/bgfx.cmake b/cmake/bgfx.cmake index 47e6faa..dedcc75 100755 --- a/cmake/bgfx.cmake +++ b/cmake/bgfx.cmake @@ -92,7 +92,8 @@ target_link_libraries( bgfx PRIVATE bx bimg ) # Frameworks required on iOS, tvOS and macOS if( ${CMAKE_SYSTEM_NAME} MATCHES iOS|tvOS ) - target_link_libraries (bgfx PUBLIC "-framework OpenGLES -framework Metal -framework UIKit -framework CoreGraphics -framework QuartzCore") + target_link_libraries (bgfx PUBLIC + "-framework OpenGLES -framework Metal -framework UIKit -framework CoreGraphics -framework QuartzCore -framework IOKit") elseif( APPLE ) find_library( COCOA_LIBRARY Cocoa ) find_library( METAL_LIBRARY Metal )