Commit 6daefe00 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

use HDF5 static

parent 6969997e
......@@ -45,10 +45,12 @@ MESSAGE( STATUS "BUILD_TYPE =" ${RELEASE} )
FIND_PACKAGE(NEMO)
FIND_PACKAGE(SQLITE3)
#set (HDF5_USE_STATIC_LIBRARIES TRUE)
FIND_PACKAGE(HDF5 COMPONENTS CXX REQUIRED)
MESSAGE( STATUS "1) HDF5_CXX_LIBRARIES=" ${HDF5_CXX_LIBRARIES})
#SET(HDF5_CXX_LIBRARIES hdf5_hl_cpp hdf5_cpp)
MESSAGE( STATUS "HDF5_CXX_LIBRARIES=" ${HDF5_CXX_LIBRARIES})
SET(HDF5_CXX_LIBRARIES hdf5_hl_cpp.a hdf5_cpp.a hdf5.a) # use this trick to compile against hdf5 static libs, to keep compatibility between hdf5 libs)
MESSAGE( STATUS "2) HDF5_CXX_LIBRARIES=" ${HDF5_CXX_LIBRARIES})
#set (NEMO_INSTALLED FALSE) # fore NEMO not installed
IF (NOT NEMO_INSTALLED)
......@@ -92,7 +94,7 @@ ELSE (NOT NEMO_INSTALLED)
SET(DEP_NEMO_LIB "${NEMOLIB}/libnemo.a")
ENDIF (NOT NEMO_INSTALLED)
target_link_libraries(unsio ${DEP_NEMO_LIB} ${HDF5_CXX_LIBRARIES} sqlite3)
target_link_libraries(unsio ${DEP_NEMO_LIB} ${HDF5_CXX_LIBRARIES} sqlite3 z )
# ----------------------------------------------------------
# Install SETUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment