We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62f9021 + b3a54d5 commit 72cac5eCopy full SHA for 72cac5e
cmake/OpenCVDetectPython.cmake
@@ -26,6 +26,12 @@ function(find_python preferred_version min_version library_env include_dir_env
26
libs_found libs_version_string libraries library debug_libraries
27
debug_library include_path include_dir include_dir2 packages_path
28
numpy_include_dirs numpy_version)
29
+
30
+ ocv_check_environment_variables(${executable})
31
+ if(${executable})
32
+ set(PYTHON_EXECUTABLE "${${executable}}")
33
+ endif()
34
35
if(WIN32 AND NOT ${executable})
36
# search for executable with the same bitness as resulting binaries
37
# standard FindPythonInterp always prefers executable from system path
0 commit comments