From 09067447882bd232c55e7ba0787e4ed78823f9a9 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 21 Jul 2015 12:41:57 +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 31c2c1e77..7ef548f0f 100644 --- a/cmake/OpenCVDetectPython.cmake +++ b/cmake/OpenCVDetectPython.cmake @@ -39,11 +39,11 @@ if(PYTHON_EXECUTABLE) if(NOT ANDROID AND NOT IOS) ocv_check_environment_variables(PYTHON_LIBRARY PYTHON_INCLUDE_DIR) if(CMAKE_CROSSCOMPILING) - find_host_package(PythonLibs ${PYTHON_VERSION_MAJOR_MINOR}) + find_package(PythonLibs ${PYTHON_VERSION_MAJOR_MINOR}) elseif(CMAKE_VERSION VERSION_GREATER 2.8.8 AND PYTHON_VERSION_FULL) - find_host_package(PythonLibs ${PYTHON_VERSION_FULL} EXACT) + find_package(PythonLibs ${PYTHON_VERSION_FULL} EXACT) else() - find_host_package(PythonLibs ${PYTHON_VERSION_FULL}) + find_package(PythonLibs ${PYTHON_VERSION_FULL}) endif() # cmake 2.4 (at least on Ubuntu 8.04 (hardy)) don't define PYTHONLIBS_FOUND if(NOT PYTHONLIBS_FOUND AND PYTHON_INCLUDE_PATH)