Restricted prior fix to visual studio only as it doesn't appear necessary for OSX/Linux.

This commit is contained in:
Ward Fisher 2016-01-07 14:17:58 -07:00
parent e0a0ea7610
commit b2aaaad1ce

View File

@ -498,7 +498,7 @@ IF(USE_HDF5 OR ENABLE_NETCDF_4)
MESSAGE(FATAL_ERROR "Unable to locate HDF5. Disable netcdf-4 or install libhdf5 1.8.9 or later.")
ENDIF(HDF5_LIBRARIES)
ELSE(MSVC)
FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED ${NC_HDF5_LINK_TYPE})
FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
ENDIF(MSVC)
ENDIF()