mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
52df3b232d
PYTHON_NUMPY_INCLUDE_PATH was a typo, it should have been PYTHON_NUMPY_INCLUDE_DIRS.
28 lines
844 B
CMake
28 lines
844 B
CMake
if(NOT PYTHON2LIBS_FOUND OR NOT PYTHON2_NUMPY_INCLUDE_DIRS)
|
|
ocv_module_disable(python2)
|
|
endif()
|
|
|
|
set(the_description "The python2 bindings")
|
|
set(MODULE_NAME python2)
|
|
|
|
set(PYTHON_INCLUDE_PATH ${PYTHON2_INCLUDE_PATH})
|
|
set(PYTHON_NUMPY_INCLUDE_DIRS ${PYTHON2_NUMPY_INCLUDE_DIRS})
|
|
set(PYTHON_EXECUTABLE ${PYTHON2_EXECUTABLE})
|
|
set(PYTHON_DEBUG_LIBRARIES ${PYTHON2_DEBUG_LIBRARIES})
|
|
set(PYTHON_LIBRARIES ${PYTHON2_LIBRARIES})
|
|
set(PYTHON_PACKAGES_PATH ${PYTHON2_PACKAGES_PATH})
|
|
set(PYTHON_VERSION_MAJOR ${PYTHON2_VERSION_MAJOR})
|
|
set(PYTHON_VERSION_MINOR ${PYTHON2_VERSION_MINOR})
|
|
|
|
include(../common.cmake)
|
|
|
|
unset(MODULE_NAME)
|
|
unset(PYTHON_INCLUDE_PATH)
|
|
unset(PYTHON_NUMPY_INCLUDE_PATH)
|
|
unset(PYTHON_EXECUTABLE)
|
|
unset(PYTHON_DEBUG_LIBRARIES)
|
|
unset(PYTHON_LIBRARIES)
|
|
unset(PYTHON_PACKAGES_PATH)
|
|
unset(PYTHON_VERSION_MAJOR)
|
|
unset(PYTHON_VERSION_MINOR)
|