Samples: fixed samples build in case the viz module is disabled

pull/10863/head
Maksim Shabunin 7 years ago
parent 252e871a8b
commit f78b9468dd
  1. 2
      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)

Loading…
Cancel
Save