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.
pull/19/head
whitequark 2016-06-13 04:15:13 +00:00
parent 1dba594949
commit 3c887d30e3
1 changed files with 2 additions and 0 deletions

View File

@ -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)