mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Merge pull request #3883 from kmsquire:python_cmake_fix
This commit is contained in:
commit
4b0543c887
@ -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…
Reference in New Issue
Block a user