From d5ee931287762abaf74d1d153a87fce5d9ab7271 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 17 Apr 2013 18:22:29 +0400 Subject: [PATCH] fixed compilation issues --- modules/gpubgsegm/src/precomp.hpp | 2 +- modules/photo/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/gpubgsegm/src/precomp.hpp b/modules/gpubgsegm/src/precomp.hpp index 9f9dcb94c5..4a0b01267e 100644 --- a/modules/gpubgsegm/src/precomp.hpp +++ b/modules/gpubgsegm/src/precomp.hpp @@ -50,7 +50,7 @@ #include "opencv2/gpuarithm.hpp" #include "opencv2/gpufilters.hpp" #include "opencv2/gpuimgproc.hpp" - +#include "opencv2/imgproc/imgproc_c.h" #include "opencv2/video.hpp" #include "opencv2/core/gpu_private.hpp" diff --git a/modules/photo/CMakeLists.txt b/modules/photo/CMakeLists.txt index d36651201d..b3e0e18dc2 100644 --- a/modules/photo/CMakeLists.txt +++ b/modules/photo/CMakeLists.txt @@ -1,2 +1,7 @@ set(the_description "Computational Photography") + +if(HAVE_CUDA) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations) +endif() + ocv_define_module(photo opencv_imgproc OPTIONAL opencv_gpuimgproc)