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