mirror of
https://github.com/opencv/opencv.git
synced 2026-09-25 04:09:57 +03:00
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:
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user