Commit d391ea14 authored by Knut's avatar Knut

cmake: avoid backslash after absolute path NETCDFLIBNAME

parent 626ded9b
......@@ -49,7 +49,7 @@ else()
set(flibs "-lnetcdf")
endif()
if(DEFINED ENV{NETCDFLIBDIR})
set(flibs "${flibs} -L$ENV{NETCDFLIBDIR}")
set(flibs "-L$ENV{NETCDFLIBDIR} ${flibs}")
endif()
set(NetCDF_LIBRARIES ${flibs} CACHE STRING "NetCDF linking flags")
find_path(NetCDF_INCLUDE_DIRS netcdf.mod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment