cmake: disable generation of pkg-config file during Xcode build

This commit is contained in:
Alexander Alekhin 2017-10-23 12:31:20 +03:00
parent cca99bf824
commit 0622146a93

View 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()