Properly disable black-listed modules during world build.

This commit is contained in:
Alexander Smorkalov
2026-09-14 10:39:52 +03:00
parent db0ce14ef2
commit 91ed6da3b4
+4
View File
@@ -437,6 +437,10 @@ function(__ocv_module_turn_off the_module)
list(REMOVE_ITEM OPENCV_MODULES_BUILD "${the_module}")
list(REMOVE_ITEM OPENCV_MODULES_PUBLIC "${the_module}")
set(HAVE_${the_module} OFF CACHE INTERNAL "Module ${the_module} can not be built in current configuration")
set(BUILD_${the_module} OFF CACHE INTERNAL "Module ${the_module} can not be built in current configuration")
if(BUILD_opencv_world)
set(OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD OFF CACHE INTERNAL "Module ${the_module} can not be built in current configuration")
endif()
set(OPENCV_MODULES_DISABLED_AUTO "${OPENCV_MODULES_DISABLED_AUTO}" CACHE INTERNAL "")
set(OPENCV_MODULES_BUILD "${OPENCV_MODULES_BUILD}" CACHE INTERNAL "")