Allow PYTHON_LIBRARY and PYTHON_INCLUDE_DIR to actually be overridden

pull/3883/head
Kevin Squire 10 years ago
parent 77cbddf715
commit 5e354fa844
  1. 4
      cmake/OpenCVDetectPython.cmake

@ -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_env}})
if(NOT ${${library_env}} EQUAL "")
set(PYTHON_LIBRARY "${${library_env}}")
endif()
if(${${include_dir_env}})
if(NOT ${${include_dir_env}} EQUAL "")
set(PYTHON_INCLUDE_DIR "${${include_dir_env}}")
endif()

Loading…
Cancel
Save