diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-11-12 07:19:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-11 15:19:56 -0800 |
| commit | 0abdaf5c9d2f8ce40a10cde1955df4c2d4f4060f (patch) | |
| tree | abab1eb7191b648ad1a646a55f3482730f0b0450 /ports/netcdf-c/fix-linkage-error.patch | |
| parent | 53b9f6eb5c7b0b0b081c9a29d6ebb880ab0b228d (diff) | |
| download | vcpkg-0abdaf5c9d2f8ce40a10cde1955df4c2d4f4060f.tar.gz vcpkg-0abdaf5c9d2f8ce40a10cde1955df4c2d4f4060f.zip | |
[netcdf-c] Fix linkage error (#14421)
Diffstat (limited to 'ports/netcdf-c/fix-linkage-error.patch')
| -rw-r--r-- | ports/netcdf-c/fix-linkage-error.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/netcdf-c/fix-linkage-error.patch b/ports/netcdf-c/fix-linkage-error.patch new file mode 100644 index 000000000..e71c30fde --- /dev/null +++ b/ports/netcdf-c/fix-linkage-error.patch @@ -0,0 +1,19 @@ +diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt +index 8aeeab7..5b578f7 100644 +--- a/liblib/CMakeLists.txt ++++ b/liblib/CMakeLists.txt +@@ -70,8 +70,14 @@ ENDIF() + IF(USE_HDF5 OR USE_NETCDF4) + if(TARGET hdf5::hdf5-shared) + SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-shared hdf5::hdf5_hl-shared) ++ if(USE_PARALLEL) ++ list(APPEND TLL_LIBS ${MPI_C_LIBRARIES}) ++ endif() + else() + SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-static hdf5::hdf5_hl-static) ++ if(USE_PARALLEL) ++ list(APPEND TLL_LIBS ${MPI_C_LIBRARIES}) ++ endif() + endif() + ENDIF() + |
