CMake: Disable searching macOS frameworks when using THIRDPARTY_DIRECTORY

This commit is contained in:
Sam Edwards 2019-11-18 20:40:48 -07:00
parent bc152f665c
commit cfedd71093

View File

@ -20,6 +20,9 @@ if(THIRDPARTY_DIRECTORY)
if(APPLE)
set(_package_dir "${THIRDPARTY_DIRECTORY}/darwin-libs-a")
# Make sure thirdparty has the first shot, not system frameworks
set(CMAKE_FIND_FRAMEWORK LAST)
elseif(WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_package_dir "${THIRDPARTY_DIRECTORY}/win-libs-vc14-x64")