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

David Cole david.cole at kitware.com
Wed Apr 25 09:00:59 EDT 2012


Brad's commit comment from:

  http://public.kitware.com/gitweb?p=VTK.git;a=commitdiff;h=ebf6777d50112b2bc98552e0781a2405552c7947

says:

"Move the preprocessor macros
from "vtkConfigure.h" to new configured header "vtkVersionMacros.h".
This avoids rebuilding everything when the version number changes.
Include the new header from the old location to provide the macros for
compatibility unless VTK_LEGACY_REMOVE is ON."


On Wed, Apr 25, 2012 at 8:58 AM, Brad King <brad.king at kitware.com> wrote:
>
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



More information about the vtk-developers mailing list