Commit 4aa6d10a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

added Maksim's fix as well; they both handle correctly more cases than each of them individually

parent 5d8a1bf8
......@@ -75,10 +75,10 @@ function(find_python preferred_version min_version library_env include_dir_env
if(NOT ANDROID AND NOT IOS)
ocv_check_environment_variables(${library_env} ${include_dir_env})
if(${library})
if(${library_env})
set(PYTHON_LIBRARY "${${library_env}}")
endif()
if(${include_dir})
if(${include_dir_env})
set(PYTHON_INCLUDE_DIR "${${include_dir_env}}")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment