From 017162e3fdb3b32f23f0ecc3ed8d0f322243d7ac Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 31 Oct 2016 01:59:22 +0100 Subject: [PATCH] Cocoa: Stop searching for system frameworks --- CMakeLists.txt | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a67af3a..5215ca80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,19 +323,11 @@ if (_GLFW_COCOA) set(_GLFW_USE_RETINA 1) endif() - # Set up library and include paths - find_library(COCOA_FRAMEWORK Cocoa) - find_library(IOKIT_FRAMEWORK IOKit) - find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation) - find_library(CORE_VIDEO_FRAMEWORK CoreVideo) - mark_as_advanced(COCOA_FRAMEWORK - IOKIT_FRAMEWORK - CORE_FOUNDATION_FRAMEWORK - CORE_VIDEO_FRAMEWORK) - list(APPEND glfw_LIBRARIES "${COCOA_FRAMEWORK}" - "${IOKIT_FRAMEWORK}" - "${CORE_FOUNDATION_FRAMEWORK}" - "${CORE_VIDEO_FRAMEWORK}") + list(APPEND glfw_LIBRARIES + "-framework Cocoa" + "-framework IOKit" + "-framework CoreFoundation" + "-framework CoreVideo") set(glfw_PKG_DEPS "") set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo")