samples: suppress vtk warnings

pull/11093/head
Alexander Alekhin 7 years ago
parent cfdffdd519
commit d800a0bd32
  1. 3
      samples/cpp/CMakeLists.txt

@ -43,6 +43,9 @@ ocv_list_filterout(cpp_samples "real_time_pose_estimation/")
foreach(sample_filename ${cpp_samples})
if(sample_filename MATCHES "/viz/")
include(${VTK_USE_FILE})
if(COMMAND ocv_warnings_disable) # eliminate warnings from VTK headers (include directory is not "SYSTEM")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Winconsistent-missing-override -Wsuggest-override)
endif()
endif()
set(package "cpp")
if(sample_filename MATCHES "tutorial_code")

Loading…
Cancel
Save