diff options
| -rw-r--r-- | ports/netcdf-c/CONTROL | 2 | ||||
| -rw-r--r-- | ports/netcdf-c/mpi.patch | 14 | ||||
| -rw-r--r-- | ports/netcdf-c/portfile.cmake | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/ports/netcdf-c/CONTROL b/ports/netcdf-c/CONTROL index 1d5b7cb90..d277cd975 100644 --- a/ports/netcdf-c/CONTROL +++ b/ports/netcdf-c/CONTROL @@ -1,5 +1,5 @@ Source: netcdf-c -Version: 4.7.3 +Version: 4.7.3-1 Build-Depends: hdf5, curl Homepage: https://github.com/Unidata/netcdf-c Description: a set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. diff --git a/ports/netcdf-c/mpi.patch b/ports/netcdf-c/mpi.patch new file mode 100644 index 000000000..64027e65c --- /dev/null +++ b/ports/netcdf-c/mpi.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 101f97719..b070121b8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1004,6 +1004,8 @@ IF(ENABLE_PARALLEL4 AND ENABLE_NETCDF_4)
+ IF(MSVC)
+ FIND_PACKAGE(MPI REQUIRED)
+ INCLUDE_DIRECTORIES(${MPI_C_INCLUDE_PATH})
++ list(APPEND CMAKE_REQUIRED_LIBRARIES MPI::MPI_C)
++ list(APPEND EXTRA_DEPS MPI::MPI_C)
+ ENDIF()
+ SET(HDF5_PARALLEL ON CACHE BOOL "")
+ SET(USE_PARALLEL ON CACHE BOOL "")
+
diff --git a/ports/netcdf-c/portfile.cmake b/ports/netcdf-c/portfile.cmake index 61dd1d885..d1af9d9f1 100644 --- a/ports/netcdf-c/portfile.cmake +++ b/ports/netcdf-c/portfile.cmake @@ -8,6 +8,7 @@ vcpkg_from_github( no-install-deps.patch config-pkg-location.patch use_targets.patch + mpi.patch ) #Remove outdated find modules |
