From 28717d0437afd5c6c46e81d638ac2f259984d0bd Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 29 Nov 2017 16:25:11 +0300 Subject: [PATCH] cmake: don't try to detect Python libraries for iOS builds Python executable is not used to generate code for iOS builds --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b5945cfa7..5aad691ebf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -514,7 +514,9 @@ if(CMAKE_GENERATOR MATCHES "Makefiles|Ninja" AND "${CMAKE_BUILD_TYPE}" STREQUAL endif() # --- Python Support --- -include(cmake/OpenCVDetectPython.cmake) +if(NOT IOS) + include(cmake/OpenCVDetectPython.cmake) +endif() include(cmake/OpenCVCompilerOptions.cmake)