diff --git a/third_party/BUILD b/third_party/BUILD index ea037dce..7522bab1 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -169,11 +169,7 @@ cmake_external( "-lm", "-lpthread", "-lrt", - ] + select({ - "//mediapipe:ios": ["-framework Cocoa"], - "//mediapipe:macos": ["-framework Cocoa"], - "//conditions:default": [], - }), + ], shared_libraries = select({ "@bazel_tools//src/conditions:darwin": ["libopencv_%s.%s.dylib" % (module, OPENCV_SO_VERSION) for module in OPENCV_MODULES], # Only the shared objects listed here will be linked in the directory