From: Nabil Ghodbane Date: Fri, 22 Apr 2022 11:00:05 +0000 (+0200) Subject: use HDF5_INCLUDE_DIRS to help cmake to pick up correct HDF5 include directory in... X-Git-Tag: V9_9_0~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=986699ca2b2ed62cf9e88f164ae609c7863f46fb;p=tools%2Fsat_salome.git 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 --- 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