diff --git a/var/spack/repos/builtin/packages/netcdf-c/netcdfc-mpi-win-support.patch b/var/spack/repos/builtin/packages/netcdf-c/netcdfc-mpi-win-support.patch index c873af1daa..7075e39dfb 100644 --- a/var/spack/repos/builtin/packages/netcdf-c/netcdfc-mpi-win-support.patch +++ b/var/spack/repos/builtin/packages/netcdf-c/netcdfc-mpi-win-support.patch @@ -26,7 +26,7 @@ index e3eddc0f..0493cb9d 100644 IF(MPI_C_INCLUDE_PATH) target_include_directories(netcdf PUBLIC ${MPI_C_INCLUDE_PATH}) -+ target_link_libraries(netcdf PUBLIC MPI::MPI_C) ++ target_link_libraries(netcdf MPI::MPI_C) ENDIF(MPI_C_INCLUDE_PATH) IF(MOD_NETCDF_NAME)