From 2c2645191ad5c334d26f368074362f83ac33f33c Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 17 Jul 2015 14:42:42 +0300 Subject: [PATCH] fix python cross-compilation --- cmake/OpenCVDetectPython.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake index f883525c80..4bca7bd932 100644 --- a/cmake/OpenCVDetectPython.cmake +++ b/cmake/OpenCVDetectPython.cmake @@ -85,9 +85,9 @@ function(find_python preferred_version min_version library_env include_dir_env # not using _version_string here, because it might not conform to the CMake version format if(CMAKE_CROSSCOMPILING) # builder version can differ from target, matching base version (e.g. 2.7) - find_host_package(PythonLibs "${_version_major_minor}") + find_package(PythonLibs "${_version_major_minor}") else() - find_host_package(PythonLibs "${_version_major_minor}.${_version_patch}" EXACT) + find_package(PythonLibs "${_version_major_minor}.${_version_patch}" EXACT) endif() if(PYTHONLIBS_FOUND) @@ -105,7 +105,7 @@ function(find_python preferred_version min_version library_env include_dir_env set(_include_dir ${PYTHON_INCLUDE_DIR}) set(_include_dir2 ${PYTHON_INCLUDE_DIR2}) - # Clear find_host_package side effects + # Clear find_package side effects unset(PYTHONLIBS_FOUND) unset(PYTHON_LIBRARIES) unset(PYTHON_INCLUDE_PATH)