Changeset 28197 for issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindNETCDF.cmake.patch
- Timestamp:
- 04/03/24 11:07:25 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindNETCDF.cmake.patch
r28161 r28197 1 --- src/cmake/modules/FindNETCDF.cmake 2 +++ FindNETCDF.cmake 2024-03-20 19:01:131 --- src/cmake/modules/FindNETCDF.cmake 2024-01-07 01:32:40 2 +++ FindNETCDF.cmake 2024-03-31 15:12:47 3 3 @@ -67,6 +67,23 @@ 4 4 OUTPUT_VARIABLE NETCDF_PREFIX_DIR … … 65 65 + endforeach (_extralib) 66 66 + # Retrieve static library names 67 + string(REGEX MATCHALL "[ a-zA-Z0-9]+\\.a" _netcdf_extra_static_lib "${NETCDF_EXTRA_LIBS}")67 + string(REGEX MATCHALL "[-_/a-zA-Z0-9]+\\.a" _netcdf_extra_static_lib "${NETCDF_EXTRA_LIBS}") 68 68 + foreach (_extralib ${_netcdf_extra_static_lib}) 69 + find_library ( _found_lib_${_extralib}69 + find_library (${_extralib} 70 70 + NAMES ${_extralib} 71 71 + PATH_SUFFIXES lib … … 73 73 + ${_netcdf_extra_libpath} 74 74 + ) 75 + list (APPEND NETCDF_LIBRARY ${_ found_lib_${_extralib}})75 + list (APPEND NETCDF_LIBRARY ${_extralib}) 76 76 + endforeach (_extralib) 77 77 +endif (NETCDF_EXTRA_LIBS)
Note:
See TracChangeset
for help on using the changeset viewer.