[vtk-developers] Moving generated headers in VTK

Ben Boeckel ben.boeckel at kitware.com
Thu Aug 17 08:59:23 EDT 2017


Hi,

When using VTK from a build tree on Windows, command line lengths get
out of hand quickly when linking many modules due to the fact that each
module adds its own source and build directory to the list. These
headers always include the export Module.h header, but sometimes other
headers are generated there as well. I have this merge request:

    https://gitlab.kitware.com/vtk/vtk/merge_requests/3159

which changes VTK to have a single location for generated headers (and
some sources due to the way vtkEncodeString works). This helps the
number of include directories to go from 2n to n+1. Third party packages
are skipped for now and manually add their build directories to the
include path instead since they tend to write to
CMAKE_CURRENT_BINARY_DIR inside of the third party packages anyways.

Thoughts?

--Ben


More information about the vtk-developers mailing list