cmake: fix processing order of <wrapper>_bindings_generator

- ensure that wrapped modules are already processed
This commit is contained in:
Alexander Alekhin
2020-12-03 11:59:06 +00:00
parent e309ad8465
commit b31ce408ae
2 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ set(PYTHON_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../")
# get list of modules to wrap
set(OPENCV_PYTHON_MODULES)
foreach(m ${OPENCV_MODULES_BUILD})
if (";${OPENCV_MODULE_${m}_WRAPPERS};" MATCHES ";${MODULE_NAME};" AND HAVE_${m})
if (";${OPENCV_MODULE_${m}_WRAPPERS};" MATCHES ";python;" AND HAVE_${m})
list(APPEND OPENCV_PYTHON_MODULES ${m})
#message(STATUS "\t${m}")
endif()