[vtk-developers] VTK_MAJOR_VERSION is no longer #define'ed

Brad King brad.king at kitware.com
Wed Apr 25 08:58:49 EDT 2012


On Wed, Apr 25, 2012 at 8:46 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Is the define for VTK_MAJOR_VERSION now gone unless we include the
> vtkVersionMacros.h? Without changing the LEGACY settings, how can I
> conditionally use code at compile time based on the VTK version?

If you include vtkVersion.h you will get the macros in all versions.

If VTK_LEGACY_REMOVE is OFF it should still be in vtkConfigure.h.

-Brad



More information about the vtk-developers mailing list