From 39298837dbfda1c01c7080c92706b92128ffc6a8 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 17 Sep 2021 13:17:55 +0200 Subject: [PATCH] bos #26358 : CGNS should link dynamically to HDF5 and not embed symbols --- products/compil_scripts/cgns.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/products/compil_scripts/cgns.sh b/products/compil_scripts/cgns.sh index 71212d4..f0b1cee 100755 --- a/products/compil_scripts/cgns.sh +++ b/products/compil_scripts/cgns.sh @@ -14,9 +14,15 @@ echo "cgnslib compilation" CMAKE_OPTIONS="" CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release" +CMAKE_OPTIONS+=" -DCGNS_BUILD_SHARED:BOOL=ON" -#add hdf5 support (tuleap spns #8161) +#add hdf5 support (tuleap spns #8161 and bos #26358) CMAKE_OPTIONS+=" -DCGNS_ENABLE_HDF5:BOOL=ON" +CMAKE_OPTIONS+=" -DHDF5_LIBRARY=${HDF5_ROOT_DIR}/lib" +CMAKE_OPTIONS+=" -DHDF5_DIR:PATH=${HDF5_ROOT_DIR}/share/cmake" +CMAKE_OPTIONS+=" -DHDF5_INCLUDE_PATH:PATH=${HDF5_ROOT_DIR}/include" +CMAKE_OPTIONS+=" -DHDF5_LIBRARY:FILEPATH=${HDF5_ROOT_DIR}/lib/libhdf5.so" +CMAKE_OPTIONS+=" -DHDF5_NEED_ZLIB=ON" if [ -n "$SAT_HPC" ] then -- 2.39.2