From b3a54d588ba82565bb4abbe8ff8913ed825ad306 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 8 Aug 2014 17:24:59 +0400 Subject: [PATCH] fix binary package build --- cmake/OpenCVDetectPython.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake index 4b71052..91e62e3 100644 --- a/cmake/OpenCVDetectPython.cmake +++ b/cmake/OpenCVDetectPython.cmake @@ -26,6 +26,12 @@ function(find_python preferred_version min_version library_env include_dir_env libs_found libs_version_string libraries library debug_libraries debug_library include_path include_dir include_dir2 packages_path numpy_include_dirs numpy_version) + + ocv_check_environment_variables(${executable}) + if(${executable}) + set(PYTHON_EXECUTABLE "${${executable}}") + endif() + if(WIN32 AND NOT ${executable}) # search for executable with the same bitness as resulting binaries # standard FindPythonInterp always prefers executable from system path -- 2.7.4