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.
This commit is contained in:
whitequark 2016-06-13 04:15:13 +00:00
parent c25e4c8973
commit ff9a8284b4

View File

@ -154,6 +154,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)