mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Refactored how HDF5 is searched for.
This commit is contained in:
parent
9b751ac7af
commit
9f443e01cf
@ -232,7 +232,14 @@ IF (USE_HDF5 OR ENABLE_NETCDF_4)
|
||||
SET(USE_HDF5 ON)
|
||||
SET(USE_NETCDF4 ON)
|
||||
|
||||
FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
|
||||
#FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
|
||||
FIND_LIBRARY(HDF5_LIB NAMES hdf5 libhdf5 hdf5dll)
|
||||
FIND_LIBRARY(HDF5_HL_LIB NAMES hdf5_hl libhdf5_hl hdf5_hldll)
|
||||
|
||||
SET(HDF5_LIBRARIES ${HDF5_LIB} ${HDF5_HL_LIB})
|
||||
FIND_PATH(HDF5_INCLUDE_DIR H5public.h)
|
||||
|
||||
MESSAGE(STATUS "${HDF5_LIB}, ${HDF5_HL_LIB}, ${HDF5_INCLUDE_DIR}")
|
||||
|
||||
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIR})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user