diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt index ea9b0294..3c7f427d 100644 --- a/liblib/CMakeLists.txt +++ b/liblib/CMakeLists.txt @@ -83,7 +83,7 @@ IF(USE_HDF5 OR USE_NETCDF4) # HDF5_HL_LIBRARY. SET(TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY}) ELSE() # Windows CMake defines HDF5_LIBRARIES. - SET(TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY}) + SET(TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY}) ENDIF() ENDIF()