paraview does not build against external VTK
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The fix for issue 0013894 is either inadequate or has bitrotted.
I have run into (at least) the following problems trying to build paraview against external VTK:
-
CMake/ParaViewModuleTop.cmake attempts to build non-existing VTK modules. As these have no ${_module}_SOURCE_DIR, this results in CMake errors about trying to add the top-level source directory multiple times. I was able to fix this by skipping modules for which ${_module}_SOURCE_DIR is empty, although this isn't very elegant.
-
Plugins can't find VTK because the build-dir ParaviewConfig.cmake refers to Paraview_BINARY_DIR/VTK/VTKConfig.cmake which of course does not exist. This can be fixed by setting the name of the VTKConfig.cmake outside of configuring ParaViewConfig.cmake.in, to a different value depending on whether VTK is external.