Skip to content

Commit f78b946

Browse files
committed
Samples: fixed samples build in case the viz module is disabled
1 parent 252e871 commit f78b946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif()
3333
if(NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters)
3434
ocv_list_filterout(cpp_samples "/gpu/")
3535
endif()
36-
if(NOT VTK_USE_FILE)
36+
if(NOT BUILD_opencv_viz OR NOT VTK_USE_FILE)
3737
ocv_list_filterout(cpp_samples "/viz/")
3838
endif()
3939
if(NOT HAVE_IPP_A)

0 commit comments

Comments
 (0)