diff --git a/modules/nonfree/CMakeLists.txt b/modules/nonfree/CMakeLists.txt index 55f6b410c..5689a12e3 100644 --- a/modules/nonfree/CMakeLists.txt +++ b/modules/nonfree/CMakeLists.txt @@ -3,4 +3,5 @@ if(BUILD_ANDROID_PACKAGE) endif() set(the_description "Functionality with possible limitations on the use") +ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef) ocv_define_module(nonfree opencv_imgproc opencv_features2d opencv_calib3d OPTIONAL opencv_gpu opencv_ocl) diff --git a/modules/softcascade/CMakeLists.txt b/modules/softcascade/CMakeLists.txt index d558e8d29..84d098d79 100644 --- a/modules/softcascade/CMakeLists.txt +++ b/modules/softcascade/CMakeLists.txt @@ -1,3 +1,3 @@ set(the_description "Soft Cascade detection and training") -ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4310 -Wundef -Wsign-promo -Wmissing-declarations -Wmissing-prototypes) +ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4310 -Wundef -Wmissing-declarations -Wmissing-prototypes) ocv_define_module(softcascade opencv_core opencv_imgproc opencv_ml)