cmake: disable pkg-config for Apple frameworks

This commit is contained in:
Alexander Alekhin 2017-02-21 19:23:37 +03:00
parent eaba0e6358
commit 88a338a3eb

View File

@ -519,7 +519,9 @@ endif(WIN32 AND NOT MINGW)
# CHECK FOR SYSTEM LIBRARIES, OPTIONS, ETC..
# ----------------------------------------------------------------------------
if(UNIX)
find_package(PkgConfig QUIET)
if(NOT APPLE_FRAMEWORK)
find_package(PkgConfig QUIET)
endif()
include(CheckFunctionExists)
include(CheckIncludeFile)