From: Nabil Ghodbane Date: Fri, 17 Sep 2021 11:17:55 +0000 (+0200) Subject: bos #26358 : CGNS should link dynamically to HDF5 and not embed symbols X-Git-Tag: V9_8_0~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39298837dbfda1c01c7080c92706b92128ffc6a8;p=tools%2Fsat_salome.git bos #26358 : CGNS should link dynamically to HDF5 and not embed symbols --- 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