Commit d800a0bd authored by Alexander Alekhin's avatar Alexander Alekhin

samples: suppress vtk warnings

parent cfdffdd5
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment