vtk 7.1.1 on Find HDF5 fails with cmake < 3.5.2
Per Atri's report.
I am a packager of vtk for openSUSE , and I find that vtk 7.1 fails to build, e.g. on openSUSE 13.2 (hd5 1.8.13, cmake 3.0.2), /fails/ on openSUSE Leap 42.1 (hdf5 1.8.15, cmake 3.3.2), /* fails / but builds fine on openSUSE Leap 42.2 (hdf5 1.8.15, cmake 3.5.2) / ok */ and later. /*ok */ The error I see on the older systems is along the lines of:
[ 245s] -- [1;4;34mConfiguring proj library:[0m [ 245s] -- [ 245s] -- PROJ_CORE_TARGET = vtkproj4 [ 245s] -- PROJ_CORE_TARGET_OUTPUT_NAME = vtkproj4 [ 245s] -- PROJ_LIBRARIES = vtkproj4 [ 246s] CMake Error at CMake/NewCMake/FindHDF5.cmake:483 (find_program): [ 246s] find_program does not support NAMES_PER_DIR [ 246s] Call Stack (most recent call first): [ 246s] CMake/FindHDF5.cmake:7 (include) [ 246s] CMake/vtkModuleMacros.cmake:858 (find_package) [ 246s] ThirdParty/hdf5/CMakeLists.txt:1 (vtk_module_third_party)
Any way we could continue to provide vtk 7.1 for these older installations, or should we simply stop upgrading vtk for these? Thanks for any help, suggestions, etc.