or perhaps it's this one

This commit is contained in:
Kyle Shores 2024-02-15 16:40:41 -06:00
parent a0931fe06a
commit e9cc0794a9

View File

@ -243,7 +243,7 @@ if(USE_HDF5)
endif()
message(STATUS "Using HDF5 include dir: ${HDF5_INCLUDE_DIR}")
target_include_directories(netcdf
PRIVATE
PUBLIC
${HDF5_INCLUDE_DIR}
)
@ -415,14 +415,14 @@ if(USE_HDF5)
message(FATAL_ERROR "Compiling a test with hdf5 failed. Either hdf5.h cannot be found, or the log messages should be checked for another reason.")
else(NOT HAVE_HDF5_H)
target_include_directories(netcdf
PRIVATE
PUBLIC
${HAVE_HDF5_H}
)
endif(NOT HAVE_HDF5_H)
#option to include HDF5 High Level header file (hdf5_hl.h) in case we are not doing a make install
target_include_directories(netcdf
PRIVATE
PUBLIC
${HDF5_HL_INCLUDE_DIR}
)