Skip to content

Commit 1866859

Browse files
committed
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
1 parent 9276b21 commit 1866859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindNetCDF.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(NetCDF_C_CONFIG_EXECUTABLE)
4949
OUTPUT_VARIABLE clibs
5050
OUTPUT_STRIP_TRAILING_WHITESPACE)
5151
if (clibs)
52-
set(NetCDF_C_LIBRARIES ${libs} CACHE STRING "NetCDF libraries (or linking flags)")
52+
set(NetCDF_C_LIBRARIES ${clibs} CACHE STRING "NetCDF libraries (or linking flags)")
5353
set(AUTODETECTED_NetCDF_C ON)
5454
endif()
5555

0 commit comments

Comments
 (0)