Update cmake/Modules/FindPNetCDF.cmake

Co-Authored-By: Christoph Junghans <christoph.junghans@gmail.com>
This commit is contained in:
jotelha
2020-01-07 13:26:01 +01:00
committed by GitHub
parent 24ef36dd4d
commit 46584d4520

View File

@ -25,7 +25,7 @@ string(REGEX REPLACE "/include/?$" ""
find_library (PNETCDF_LIBRARIES
NAMES pnetcdf
HINTS ${PNETCDF_LIB_HINT})
HINTS ${PNETCDF_LIB_HINT} PATH_SUFFIXES lib lib64)
if ((NOT PNETCDF_LIBRARIES) OR (NOT PNETCDF_INCLUDES))
message(STATUS "Trying to find PNetCDF using LD_LIBRARY_PATH (we're desperate)...")