This commit is contained in:
Ward Fisher 2013-06-10 16:01:04 +00:00
parent 715e6e2acb
commit 38ac26a74b

View File

@ -401,7 +401,12 @@ IF (USE_HDF5 OR ENABLE_NETCDF_4)
SET(HDF5_LIBRARIES ${HDF5_LIB} ${HDF5_HL_LIB})
SET(HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIR})
ELSE()
FIND_PACKAGE(HDF5 COMPONENTS C HL NO_MODULE REQUIRED)
IF(MSVC)
FIND_PACKAGE(HDF5 COMPONENTS C HL NO_MODULE REQUIRED)
ELSE()
FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
ENDIF()
ENDIF()
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIRS})