diff --git a/modules/superres/CMakeLists.txt b/modules/superres/CMakeLists.txt index 34c9297a1b..028274b8eb 100644 --- a/modules/superres/CMakeLists.txt +++ b/modules/superres/CMakeLists.txt @@ -3,6 +3,9 @@ if(IOS OR WINRT) endif() set(the_description "Super Resolution") +if(HAVE_CUDA) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wshadow) +endif() ocv_define_module(superres opencv_imgproc opencv_video OPTIONAL opencv_videoio opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc opencv_cudaoptflow opencv_cudacodec WRAP python)