From 543341eb0fb4a68a638c6a41eb9b5e1d7fcfac29 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Mon, 4 Dec 2017 13:53:47 -0600 Subject: [PATCH] Updated for static versions of hdf5 as well. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35cc2ecda..44ed1ce43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")