Friday, April 3, 2009

How to avoid #warning This file includes at least one deprecated or antiquated header... in VTK

This warning is so annoying. It really bothers me when I compile a VTK-based file. The solution is, - I am getting for granted you already know the compilation process.

a) Open ccmake .
b) Enter "g" to activate the complete mode and fill the CMAKE_CXX_FLAGS with -Wno-deprecated.

That's all:

0 comments: