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

This commit is contained in:
Maksim Shabunin 2018-02-14 12:45:10 +03:00
parent 252e871a8b
commit f78b9468dd

View File

@ -33,7 +33,7 @@ endif()
if(NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters) if(NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters)
ocv_list_filterout(cpp_samples "/gpu/") ocv_list_filterout(cpp_samples "/gpu/")
endif() endif()
if(NOT VTK_USE_FILE) if(NOT BUILD_opencv_viz OR NOT VTK_USE_FILE)
ocv_list_filterout(cpp_samples "/viz/") ocv_list_filterout(cpp_samples "/viz/")
endif() endif()
if(NOT HAVE_IPP_A) if(NOT HAVE_IPP_A)