Skip to content

Commit

Permalink
Fix possible typo in FindNetCDF.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Dec 22, 2023
1 parent f31a257 commit 929ca39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindNetCDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if(NetCDF_C_CONFIG_EXECUTABLE)
OUTPUT_VARIABLE DEFAULT_C_INCLUDE_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${NetCDF_C_CONFIG_EXECUTABLE} --libs
OUTPUT_VARIABLE libs
OUTPUT_VARIABLE clibs
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (flibs)
if (clibs)
set(NetCDF_C_LIBRARIES ${libs} CACHE STRING "NetCDF libraries (or linking flags)")
set(AUTODETECTED_NetCDF_C ON)
endif()
Expand Down

0 comments on commit 929ca39

Please sign in to comment.