From f0c14888d51c11d787cca5be09a75f44f81a3f43 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 14 Dec 2015 15:14:23 +0300 Subject: [PATCH] fixes #5018: fix framework links in opencv.pc (MacOS) --- cmake/OpenCVGenPkgconfig.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake index 28a6da686e..b8cb8777c0 100644 --- a/cmake/OpenCVGenPkgconfig.cmake +++ b/cmake/OpenCVGenPkgconfig.cmake @@ -21,6 +21,8 @@ macro(fix_prefix lst isown) endif() if(item MATCHES "^-l") list(APPEND _lst "${item}") + elseif(item MATCHES "^-framework") # MacOS framework (assume single entry "-framework OpenCL") + list(APPEND _lst "${item}") elseif(item MATCHES "[\\/]") get_filename_component(libdir "${item}" PATH) get_filename_component(libname "${item}" NAME_WE)