From f78b9468dd04eff1d26c69c5ab2c3d5a51b38367 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Wed, 14 Feb 2018 12:45:10 +0300 Subject: [PATCH] Samples: fixed samples build in case the viz module is disabled --- samples/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt index 7de6c1c278..5cb736e19d 100644 --- a/samples/cpp/CMakeLists.txt +++ b/samples/cpp/CMakeLists.txt @@ -33,7 +33,7 @@ endif() if(NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters) ocv_list_filterout(cpp_samples "/gpu/") endif() -if(NOT VTK_USE_FILE) +if(NOT BUILD_opencv_viz OR NOT VTK_USE_FILE) ocv_list_filterout(cpp_samples "/viz/") endif() if(NOT HAVE_IPP_A)