Versioned install dir for hierarchy files
Currently, the hierarchy files are installed in <PREFIX>/lib/vtk/hierarchy/
. This means that if someone installs multiple versions of VTK to the same prefix, there will be collisions. This contrasts to the installation of header files, which go into <PREFIX>/include/vtk-x.y
. The same version suffix should be used for the hierarchy dir as is used for the header dir.
Distro builders can work around this by setting the vtk_hierarchy_destination_args
cmake variable, but this is undocumented and doesn't help general users.
See !9115 (merged) for a fix so that at least VTK's own hierarchy files go into vtk-x.y
.
However, even with the above fix, any externally-built packages will still put their hierarchy files in <PREFIX>/lib/vtk/hierarchy/
unless they explicitly specify a HIERARCHY_DESTINATION
for vtk_module_build()
. It would be nice if vtk_module_build()
would automatically use the VTK version suffix in the default hierarchy destination.