From 3c887d30e329c63a757e2fcc5d37490184023ac8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 13 Jun 2016 04:15:13 +0000 Subject: [PATCH] OS X: find frameworks last. Before this commit, any available libpng or libfreetype would be picked, e.g. from Mono.framework. After, homebrew and MacPorts are prioritized. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1a8ac60..5f143053 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -176,6 +176,8 @@ if(WIN32) "${CMAKE_SOURCE_DIR}/extlib/si/siapp.lib") endif() elseif(APPLE) + set(CMAKE_FIND_FRAMEWORKS LAST) + find_package(PNG REQUIRED) find_package(Freetype REQUIRED) find_library(APPKIT_LIBRARY AppKit REQUIRED)