From 1866859defb66d1633dbe4d36621766be979dd71 Mon Sep 17 00:00:00 2001 From: jayeshkrishna Date: Wed, 20 Mar 2024 13:04:44 -0500 Subject: [PATCH] Fix NetCDF C lib detection Fix typo when setting the NetCDF C libraries. Without this fix standalone builds of cprnc fails with missing NetCDF lib dependencies --- cmake/FindNetCDF.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindNetCDF.cmake b/cmake/FindNetCDF.cmake index c55cc28..e1ddc7e 100644 --- a/cmake/FindNetCDF.cmake +++ b/cmake/FindNetCDF.cmake @@ -49,7 +49,7 @@ if(NetCDF_C_CONFIG_EXECUTABLE) OUTPUT_VARIABLE clibs OUTPUT_STRIP_TRAILING_WHITESPACE) if (clibs) - set(NetCDF_C_LIBRARIES ${libs} CACHE STRING "NetCDF libraries (or linking flags)") + set(NetCDF_C_LIBRARIES ${clibs} CACHE STRING "NetCDF libraries (or linking flags)") set(AUTODETECTED_NetCDF_C ON) endif()