From 763af89594fa987fcceb3c16e9beb6988de2aab9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 4 May 2020 16:49:04 +0400 Subject: [PATCH] Don't link IOSurface and Metal in OS X version. --- options_mac.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/options_mac.cmake b/options_mac.cmake index 6829572..a43470e 100644 --- a/options_mac.cmake +++ b/options_mac.cmake @@ -50,8 +50,6 @@ INTERFACE CoreText CoreGraphics CoreMedia - IOSurface - Metal OpenGL AudioUnit ApplicationServices @@ -70,3 +68,11 @@ INTERFACE CoreWLAN IOKit ) + +if (NOT build_osx) + target_link_frameworks(common_options + INTERFACE + IOSurface + Metal + ) +endif()