Merge pull request #29946 from asmorkalov:as/turn_off_disabled_moudules_world

Properly disable black-listed modules during world build.
This commit is contained in:
Alexander Smorkalov
2026-09-14 16:23:16 +03:00
committed by GitHub
+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 "")