Updated for static versions of hdf5 as well.

This commit is contained in:
Ward Fisher 2017-12-04 13:53:47 -06:00
parent 6b828cbae0
commit 543341eb0f

View File

@ -1840,6 +1840,8 @@ 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 "-lhdf5::hdf5-static" "-lhdf5" NC_LIBS ${NC_LIBS})
STRING(REPLACE "-lhdf5::hdf5_hl-static" "-lhdf5_hl" NC_LIBS ${NC_LIBS})
STRING(REPLACE ";" " " LINKFLAGS "${LINKFLAGS}")