From 58fad284f55a3fefb9717442a6ab1f4af0475e93 Mon Sep 17 00:00:00 2001 From: zaveshaa Date: Mon, 24 Aug 2026 17:10:15 +0300 Subject: [PATCH] Gate macOS Cocoa framework propagation to the Desktop platform --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b68f6066e..25b61734d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,8 +117,9 @@ if (NOT BUILD_SHARED_LIBS) # Bundled GLFW links its Cocoa backend frameworks privately, so they # must be propagated to consumers of the static library, whose final - # link line would otherwise miss them. - if (APPLE) + # link line would otherwise miss them. Only the Desktop platform uses + # bundled GLFW; other platforms (e.g. Memory) have no Cocoa/GLFW symbols. + if (APPLE AND PLATFORM STREQUAL "Desktop") find_library(COCOA_FRAMEWORK Cocoa) find_library(IOKIT_FRAMEWORK IOKit) find_library(QUARTZCORE_FRAMEWORK QuartzCore)