Skip to content

Commit 0622146

Browse files
committed
cmake: disable generation of pkg-config file during Xcode build
1 parent cca99bf commit 0622146

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,8 @@ endif()
793793
include(cmake/OpenCVGenHeaders.cmake)
794794

795795
# Generate opencv.pc for pkg-config command
796-
if(NOT OPENCV_SKIP_PKGCONFIG_GENERATION)
796+
if(NOT OPENCV_SKIP_PKGCONFIG_GENERATION
797+
AND NOT CMAKE_GENERATOR MATCHES "Xcode")
797798
include(cmake/OpenCVGenPkgconfig.cmake)
798799
endif()
799800

0 commit comments

Comments
 (0)