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:
parent
c25e4c8973
commit
ff9a8284b4
|
@ -154,6 +154,8 @@ if(WIN32)
|
||||||
"${CMAKE_SOURCE_DIR}/extlib/si/siapp.lib")
|
"${CMAKE_SOURCE_DIR}/extlib/si/siapp.lib")
|
||||||
endif()
|
endif()
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
set(CMAKE_FIND_FRAMEWORKS LAST)
|
||||||
|
|
||||||
find_package(PNG REQUIRED)
|
find_package(PNG REQUIRED)
|
||||||
find_package(Freetype REQUIRED)
|
find_package(Freetype REQUIRED)
|
||||||
find_library(APPKIT_LIBRARY AppKit REQUIRED)
|
find_library(APPKIT_LIBRARY AppKit REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user