mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Corrected for string reported by FindHDF5.cmake on Windows.
This commit is contained in:
parent
f480dfd03a
commit
6b828cbae0
@ -1797,10 +1797,6 @@ IF(MSVC)
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT dependencies)
|
||||
|
||||
#INSTALL(DIRECTORY ${CMAKE_PREFIX_PATH} DESTINATION "deps" COMPONENT dependencies)
|
||||
# INSTALL(FILES ${ALL_TLL_LIBS}
|
||||
# DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
# COMPONENT dependencies)
|
||||
ENDIF()
|
||||
|
||||
# Subdirectory CMakeLists.txt files should specify their own
|
||||
@ -1842,6 +1838,10 @@ ENDFOREACH()
|
||||
SET(NC_LIBS "-lnetcdf ${NC_LIBS}")
|
||||
|
||||
STRING(REPLACE ";" " " NC_LIBS "${NC_LIBS}")
|
||||
STRING(REPLACE "-lhdf5::hdf5-shared" "-lhdf5" NC_LIBS ${NC_LIBS})
|
||||
STRING(REPLACE "-lhdf5::hdf5_hl-shared" "-lhdf5_hl" NC_LIBS ${NC_LIBS})
|
||||
|
||||
|
||||
STRING(REPLACE ";" " " LINKFLAGS "${LINKFLAGS}")
|
||||
|
||||
LIST(REMOVE_DUPLICATES NC_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user