Merge branch 'master' of bitbucket.org:glavaux/cosmotool

This commit is contained in:
Guilhem Lavaux 2019-01-31 16:02:20 +01:00
commit bc97f15f90
3 changed files with 8 additions and 4 deletions

View file

@ -41,7 +41,7 @@ if (HDF5_FOUND)
set_property(TARGET CosmoHDF5 PROPERTY POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS})
target_include_directories(CosmoHDF5 BEFORE PRIVATE ${HDF5_INCLUDE_DIR})
else(HDF5_FOUND)
add_library(CosmoHdf5 OBJECT
add_library(CosmoHDF5 OBJECT
loadFlash_dummy.cpp
)
endif (HDF5_FOUND)

View file

@ -51,7 +51,7 @@ knowledge of the CeCILL license and that you accept its terms.
#include <H5Cpp.h>
namespace CosmoTool {
#if (H5_VERS_MAJOR == 1) && (H5_VERS_MINOR <= 8)
#if H5_VERSION_GE(1,8,20)
typedef H5::CommonFG H5_CommonFileGroup;
#else
typedef H5::Group H5_CommonFileGroup;