From 986699ca2b2ed62cf9e88f164ae609c7863f46fb Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 22 Apr 2022 13:00:05 +0200 Subject: [PATCH] use HDF5_INCLUDE_DIRS to help cmake to pick up correct HDF5 include directory in case hdf5-openmpi-devel is present on the build node, since cmake will then use /usr/include/openmpi-x86_64/hdf5.h. As a consequence python -c "import vtk" will crash and complain about missing HDF5 parallel interface --- products/compil_scripts/ParaView-5.9.0.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/compil_scripts/ParaView-5.9.0.sh b/products/compil_scripts/ParaView-5.9.0.sh index 5302435..3b2e7de 100755 --- a/products/compil_scripts/ParaView-5.9.0.sh +++ b/products/compil_scripts/ParaView-5.9.0.sh @@ -172,7 +172,7 @@ CMAKE_OPTIONS+=" -DHDF5_HL_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so" CMAKE_OPTIONS+=" -DHDF5_C_INCLUDE_DIR=${HDF5_ROOT_DIR}/include" CMAKE_OPTIONS+=" -DHDF5_HL_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so" CMAKE_OPTIONS+=" -DHDF5_C_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5.so" -CMAKE_OPTIONS+=" -DHDF5_INCLUDE_DIR=${HDF5_ROOT_DIR}/include" +CMAKE_OPTIONS+=" -DHDF5_INCLUDE_DIRS=${HDF5_ROOT_DIR}/include" CMAKE_OPTIONS+=" -DHDF5_IS_PARALLEL=OFF" ### CGNS -- 2.39.2