Corrected a CMake error on Linux.

This commit is contained in:
Ward Fisher 2013-10-07 12:58:38 -06:00
parent 1cb69fb402
commit 8b368d0c3b

View File

@ -53,12 +53,12 @@ IF(USE_HDF5 OR USE_NETCDF4)
# Some version of cmake define HDF5_hdf5_LIBRARY instead of
# HDF5_LIBRARY. Same with HDF5_HL_LIBRARY
IF(HDF5_hdf5_LIBRARY AND NOT HDF5_C_LIBRARY)
SET(HDF5_C_LIBRARY ${HDF5_hdf5_LIBRARY} CACHE STRING "Target HDF5_C Library.")
SET(HDF5_C_LIBRARY ${HDF5_hdf5_LIBRARY})
ENDIF()
IF(HDF5_hdf5_hl_LIBRARY AND NOT HDF5_HL_LIBRARY)
SET(HDF5_HL_LIBRARY ${HDF5_hdf5_hl_LIBRARY} CACHE STRING "Target HDF5_HL Library.")
SET(HDF5_HL_LIBRARY ${HDF5_hdf5_hl_LIBRARY})
ENDIF()
SET(TLL_LIBS ${HDF5_C_LIBRARY} ${HDF5_HL_LIBRARY} ${TLL_LIBS} ${SZIP_LIBRARY} CACHE STRING "Target link libraries")
SET(TLL_LIBS ${HDF5_C_LIBRARY} ${HDF5_HL_LIBRARY} ${TLL_LIBS} ${SZIP_LIBRARY})
ELSE() # Windows CMake defines HDF5_LIBRARIES.
SET(TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY})
ENDIF()