Skip to content

Commit 28717d0

Browse files
committed
cmake: don't try to detect Python libraries for iOS builds
Python executable is not used to generate code for iOS builds
1 parent 5ea50d1 commit 28717d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ if(CMAKE_GENERATOR MATCHES "Makefiles|Ninja" AND "${CMAKE_BUILD_TYPE}" STREQUAL
514514
endif()
515515

516516
# --- Python Support ---
517-
include(cmake/OpenCVDetectPython.cmake)
517+
if(NOT IOS)
518+
include(cmake/OpenCVDetectPython.cmake)
519+
endif()
518520

519521
include(cmake/OpenCVCompilerOptions.cmake)
520522

0 commit comments

Comments
 (0)