mirror of
https://github.com/opencv/opencv.git
synced 2026-07-25 21:33:04 +04:00
cmake: update installation of python extra submodules
- support Python standalone builds - loader installs submodules unconditionally
This commit is contained in:
@@ -15,23 +15,9 @@ set(the_description "The python3 bindings")
|
||||
set(MODULE_NAME python3)
|
||||
set(MODULE_INSTALL_SUBDIR python3)
|
||||
|
||||
set(_ocv_extra_modules_path ${CMAKE_CURRENT_LIST_DIR}/../package/extra_modules)
|
||||
set(_old_ocv_python_extra_modules_path ${OCV_PYTHON_EXTRA_MODULES_PATH})
|
||||
|
||||
if("${OCV_PYTHON_EXTRA_MODULES_PATH}" STREQUAL "")
|
||||
set(OCV_PYTHON_EXTRA_MODULES_PATH ${_ocv_extra_modules_path})
|
||||
else()
|
||||
list(APPEND OCV_PYTHON_EXTRA_MODULES_PATH ${_ocv_extra_modules_path})
|
||||
endif()
|
||||
|
||||
unset(_ocv_extra_modules_path)
|
||||
|
||||
set(PYTHON PYTHON3)
|
||||
|
||||
include(../common.cmake)
|
||||
|
||||
set(OCV_PYTHON_EXTRA_MODULES_PATH ${_old_ocv_python_extra_modules_path})
|
||||
|
||||
unset(_old_ocv_python_extra_modules_path)
|
||||
unset(MODULE_NAME)
|
||||
unset(MODULE_INSTALL_SUBDIR)
|
||||
|
||||
Reference in New Issue
Block a user