Update cmake/Modules/FindNetCDF.cmake

Co-Authored-By: Christoph Junghans <christoph.junghans@gmail.com>
This commit is contained in:
jotelha
2019-12-22 13:25:08 +01:00
committed by GitHub
parent 4e7bcee8e3
commit 0c7d6a01e8

View File

@ -49,7 +49,7 @@ mark_as_advanced (NETCDF_INCLUDE_DIR)
set (NETCDF_C_INCLUDE_DIRS ${NETCDF_INCLUDE_DIR})
string(REGEX REPLACE "/include/?$" "/lib"
string(REGEX REPLACE "/include/?$" ""
NETCDF_LIB_HINT ${NETCDF_INCLUDE_DIR})
find_library (NETCDF_LIBRARY NAMES netcdf