From 88a338a3eba4f6f383e251b8ce576ff8237e44dd Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 21 Feb 2017 19:23:37 +0300 Subject: [PATCH] cmake: disable pkg-config for Apple frameworks --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71b4b36087..83d567685e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)