From 4f29b0b7f420c0a7a71def563803a26561a8cda9 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 11 Dec 2016 15:17:25 +0100 Subject: [PATCH] Moved to support hdf5 > 1.8.17 --- external/external_build.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/external/external_build.cmake b/external/external_build.cmake index ae8242a..aa3eab2 100644 --- a/external/external_build.cmake +++ b/external/external_build.cmake @@ -86,7 +86,10 @@ else (INTERNAL_HDF5) if(HDF5_ROOTDIR) SET(ENV{HDF5_ROOT} ${HDF5_ROOTDIR}) endif(HDF5_ROOTDIR) - find_package(HDF5 COMPONENTS C CXX HL) + find_package(HDF5 COMPONENTS C CXX HL static) + set(HDF5_LIBRARIES ${HDF5_C_STATIC_LIBRARY} CACHE STRING "HDF5 lib" FORCE) + set(HDF5_HL_LIBRARIES ${HDF5_HL_STATIC_LIBRARY} CACHE STRING "HDF5 HL lib" FORCE) + set(HDF5_CXX_LIBRARIES ${HDF5_CXX_STATIC_LIBRARY} CACHE STRING "HDF5 C++ lib" FORCE) endif (INTERNAL_HDF5) foreach(include_dir ${HDF5_INCLUDE_DIR})