diff --git a/modules/java/CMakeLists.txt b/modules/java/CMakeLists.txt index 8cc4bd07a652..5b3140011b22 100644 --- a/modules/java/CMakeLists.txt +++ b/modules/java/CMakeLists.txt @@ -3,6 +3,7 @@ if(OPENCV_INITIAL_PASS) add_subdirectory(generator) endif() +ocv_module_disable(java) if(APPLE_FRAMEWORK OR WINRT OR NOT PYTHON_DEFAULT_AVAILABLE OR NOT ANT_EXECUTABLE OR NOT (JNI_FOUND OR (ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 7)) OR BUILD_opencv_world diff --git a/modules/objdetect/CMakeLists.txt b/modules/objdetect/CMakeLists.txt index 4e330af6c048..fc40b1166df4 100644 --- a/modules/objdetect/CMakeLists.txt +++ b/modules/objdetect/CMakeLists.txt @@ -1,2 +1,3 @@ set(the_description "Object Detection") +ocv_module_disable(objdetect) ocv_define_module(objdetect opencv_core opencv_imgproc WRAP java python js)