diff --git a/nc-config.cmake.in b/nc-config.cmake.in index 2189208a2..fd0c8ad9c 100644 --- a/nc-config.cmake.in +++ b/nc-config.cmake.in @@ -12,6 +12,7 @@ includedir="@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@" cc="@CMAKE_C_COMPILER@" cflags="-I@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@" libs="-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ @NC_LIBS@" +libsprivate="@LIBS@" has_dap2="@ENABLE_DAP2@" if [ -z $has_dap2 -o "$has_dap2" = "OFF" ]; then @@ -163,6 +164,7 @@ Available values for OPTION include: --has-parallel4 whether has parallel IO support via HDF5 --has-parallel whether has parallel IO support via HDF5 or PnetCDF --libs library linking information for netcdf + --static library linking information for statically-compiled netcdf --prefix Install prefix --includedir Include directory --libdir Library directory @@ -202,6 +204,7 @@ all() echo " --cc -> $cc" echo " --cflags -> $cflags" echo " --libs -> $libs" + echo " --static -> $libsprivate" echo echo " --has-c++ -> $has_cxx" echo " --cxx -> $cxx" @@ -336,6 +339,10 @@ while test $# -gt 0; do echo $libs ;; + --static) + echo $libs $libsprivate + ;; + --prefix) echo "${prefix}" ;; diff --git a/nc-config.in b/nc-config.in index 513846225..9d514b0b6 100644 --- a/nc-config.in +++ b/nc-config.in @@ -12,6 +12,8 @@ includedir=@includedir@ cc="@CC@" cflags="-I${includedir} @CPPFLAGS@" libs="-L${libdir} @NC_LIBS@" +libsprivate="@LIBS@" + has_dap="@HAS_DAP@" has_dap4="@HAS_DAP4@" @@ -90,6 +92,7 @@ Available values for OPTION include: --has-parallel4 whether has parallel IO support via HDF5 --has-parallel whether has parallel IO support via HDF5 or PnetCDF --libs library linking information for netcdf + --static library linking information for statically-compiled netcdf --prefix Install prefix --includedir Include directory --libdir Library directory @@ -129,6 +132,7 @@ all() echo " --cc -> $cc" echo " --cflags -> $cflags" echo " --libs -> $libs" + echo " --static -> $libsprivate" echo echo " --has-c++ -> $has_cxx" echo " --cxx -> $cxx" @@ -262,6 +266,9 @@ while test $# -gt 0; do --libs) echo $libs ;; + --static) + echo $libs $libsprivate + ;; --prefix) echo "${prefix}"