Skip to content

Commit

Permalink
enable deprecated APIs for HDF5
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Oct 4, 2024
1 parent c4b4b7b commit b2e8648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/Modules/Packages/H5MD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ enable_language(C)
# we don't use the parallel i/o interface.
set(HDF5_PREFER_PARALLEL FALSE)

find_package(HDF5 REQUIRED)
find_package(HDF5 COMPONENTS C REQUIRED)

# parallel HDF5 will import incompatible MPI headers with a serial build
if((NOT BUILD_MPI) AND HDF5_IS_PARALLEL)
Expand Down
3 changes: 2 additions & 1 deletion lib/h5md/Makefile.h5cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ CC=h5cc

# -DH5_NO_DEPRECATED_SYMBOLS is required here to ensure we are using
# the v1.8 API when HDF5 is configured to default to using the v1.6 API.
CFLAGS=-D_DEFAULT_SOURCE -O2 -DH5_NO_DEPRECATED_SYMBOLS -Wall -fPIC
#CFLAGS=-D_DEFAULT_SOURCE -O2 -DH5_NO_DEPRECATED_SYMBOLS -Wall -fPIC
CFLAGS=-D_DEFAULT_SOURCE -O2 -Wall -fPIC
HDF5_PATH=/usr
INC=-I include
AR=ar
Expand Down

0 comments on commit b2e8648

Please sign in to comment.