mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Corrected an issue on Windows
This commit is contained in:
parent
c8baf5c0e3
commit
1cb69fb402
@ -49,18 +49,18 @@ IF(HAVE_LIBDL)
|
||||
ENDIF()
|
||||
|
||||
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.")
|
||||
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.")
|
||||
ENDIF()
|
||||
IF(NOT MSVC)
|
||||
# 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.")
|
||||
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.")
|
||||
ENDIF()
|
||||
SET(TLL_LIBS ${HDF5_C_LIBRARY} ${HDF5_HL_LIBRARY} ${TLL_LIBS} ${SZIP_LIBRARY} CACHE STRING "Target link libraries")
|
||||
ELSE() # Windows CMake defines HDF5_LIBRARIES.
|
||||
SET(TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY} CACHE STRING "Target link libraries")
|
||||
SET(TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY})
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user