mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
505 B
22 lines
505 B
if(NOT PYTHON3_INCLUDE_PATH OR NOT PYTHON3_NUMPY_INCLUDE_DIRS) |
|
ocv_module_disable(python3) |
|
endif() |
|
|
|
# Problem in numpy >=1.15 <1.17 |
|
if(PYTHON3_LIMITED_API |
|
AND NOT PYTHON3_NUMPY_VERSION VERSION_LESS "1.15" |
|
AND PYTHON3_NUMPY_VERSION VERSION_LESS "1.17" |
|
) |
|
set(PYTHON3_LIMITED_API OFF) |
|
endif() |
|
|
|
set(the_description "The python3 bindings") |
|
set(MODULE_NAME python3) |
|
set(MODULE_INSTALL_SUBDIR python3) |
|
|
|
set(PYTHON PYTHON3) |
|
|
|
include(../common.cmake) |
|
|
|
unset(MODULE_NAME) |
|
unset(MODULE_INSTALL_SUBDIR)
|
|
|