opencv/modules/python/python3/CMakeLists.txt

24 lines
611 B
CMake
Raw Normal View History

if(NOT PYTHON3_INCLUDE_PATH OR NOT PYTHON3_NUMPY_INCLUDE_DIRS)
ocv_module_disable(python3)
endif()
2019-03-21 15:45:02 +08:00
# 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"
)
2020-09-25 19:16:46 +08:00
message(WARNING "Current NUMPY version (${PYTHON3_NUMPY_VERSION}) is not compatible with LIMITED_API.")
2019-03-21 15:45:02 +08:00
set(PYTHON3_LIMITED_API OFF)
endif()
set(the_description "The python3 bindings")
2014-07-31 13:11:30 +08:00
set(MODULE_NAME python3)
set(MODULE_INSTALL_SUBDIR python3)
set(PYTHON PYTHON3)
include(../common.cmake)
2014-07-31 13:11:30 +08:00
unset(MODULE_NAME)
unset(MODULE_INSTALL_SUBDIR)