File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,20 @@ if(PkgConfig_FOUND AND NOT NetCDF_Fortran_LIBRARY)
9898endif ()
9999
100100find_path (NetCDF_Fortran_INCLUDE_DIR
101- names netcdf.mod
102- HINTS ${pc_ncf_INCLUDE_DIRS}
101+ NAMES netcdf.mod
102+ HINTS ${NetCDF_C_INCLUDE_DIR} ${ pc_ncf_INCLUDE_DIRS}
103103DOC "NetCDF Fortran Include"
104104)
105105
106106if (NOT NetCDF_Fortran_INCLUDE_DIR)
107107 return ()
108108endif ()
109109
110+ cmake_path(GET NetCDF_C_LIBRARY PARENT_PATH NetCDF_LIBDIR)
111+
110112find_library (NetCDF_Fortran_LIBRARY
111113NAMES netcdff
112- HINTS ${pc_ncf_LIBRARY_DIRS} ${pc_ncf_LIBDIR}
114+ HINTS ${NetCDF_LIBDIR} ${ pc_ncf_LIBRARY_DIRS} ${pc_ncf_LIBDIR}
113115DOC "NetCDF Fortran library"
114116)
115117
@@ -166,6 +168,7 @@ mark_as_advanced(NetCDF_C_INCLUDE_DIR NetCDF_Fortran_INCLUDE_DIR NetCDF_C_LIBRAR
166168include (FindPackageHandleStandardArgs)
167169find_package_handle_standard_args(NetCDF
168170REQUIRED_VARS _ncdf_req
171+ VERSION_VAR NetCDF_VERSION
169172HANDLE_COMPONENTS
170173HANDLE_VERSION_RANGE
171174)
Original file line number Diff line number Diff line change 33 "@type" : " SoftwareSourceCode" ,
44 "codeRepository" : " https://github.com/geospace-code/nc4fortran" ,
55 "contIntegration" : " https://github.com/geospace-code/nc4fortran/actions" ,
6- "dateModified" : " 2021-12-22 " ,
6+ "dateModified" : " 2022-01-26 " ,
77 "downloadUrl" : " https://github.com/geospace-code/nc4fortran/releases" ,
88 "issueTracker" : " https://github.com/geospace-code/nc4fortran/issues" ,
99 "name" : " nc4fortran" ,
10- "version" : " 1.5.0 " ,
10+ "version" : " 1.5.1 " ,
1111 "identifier" : " 10.5281/zenodo.3757221" ,
1212 "description" : " Lightweight object-oriented NetCDF4 Fortran interface" ,
1313 "applicationCategory" : " file I/O" ,
You can’t perform that action at this time.
0 commit comments