Trouble packaging ParaView 5.8.0
I'm trying to update the Fedora paraview package to version 5.8.0 but am running into some difficulty with library/cmake file locations.
Previously (5.6.0) we used (%{_lib} resolves to "lib" or "lib64" as neeeded):
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview
-DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview
This got the paraview cmake files into the proper location (though they probably should have been in "lib") and moved in particular the libvtk* libraries out of the main /usr/lib(64) directory so they would not conflict with the separate vtk package.
With 5.8.0 I am using:
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}/paraview
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview
But I'm ending up with the cmake files in /usr/lib64/paraview/cmake/paraview
where they will not automatically be found by cmake. This path seems to be inflexibly below CMAKE_INSTALL_DIR:
set(paraview_cmake_destination
"${CMAKE_INSTALL_LIBDIR}/cmake/paraview${paraview_version_suffix}")
Any suggestions for how to handle this? Perhaps have a CMAKE_INSTALL_CMAKEDIR variable that can be overridden? Thanks!
(PS - I'm not sure the VTK_INSTALL_* options are really used anymore though cmake doesn't call it out as unused)