]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #26358 : CGNS should link dynamically to HDF5 and not embed symbols
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 17 Sep 2021 11:17:55 +0000 (13:17 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 17 Sep 2021 11:17:55 +0000 (13:17 +0200)
products/compil_scripts/cgns.sh

index 71212d40ec37527eade16789c696bcbd70974c6a..f0b1ceede9387fb27808e46a8e5758d00e5f3e7d 100755 (executable)
@@ -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