cmake: disable generation of pkg-config file during Xcode build
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 23 Oct 2017 09:31:20 +0000 (12:31 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 23 Oct 2017 09:31:20 +0000 (12:31 +0300)
CMakeLists.txt

index 47de63f..7294303 100644 (file)
@@ -793,7 +793,8 @@ endif()
 include(cmake/OpenCVGenHeaders.cmake)
 
 # Generate opencv.pc for pkg-config command
-if(NOT OPENCV_SKIP_PKGCONFIG_GENERATION)
+if(NOT OPENCV_SKIP_PKGCONFIG_GENERATION
+    AND NOT CMAKE_GENERATOR MATCHES "Xcode")
   include(cmake/OpenCVGenPkgconfig.cmake)
 endif()