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

This commit is contained in:
Vadim Pisarevsky 2015-03-06 15:48:36 +03:00
parent 5d8a1bf813
commit 4aa6d10a60

View File

@ -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()