netcdf-c package: fix patch applied on Windows (#36581)

This commit is contained in:
John W. Parent 2023-03-31 20:52:36 -04:00 committed by GitHub
parent 210b2e8caa
commit 1175831203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ index e3eddc0f..0493cb9d 100644
IF(MPI_C_INCLUDE_PATH) IF(MPI_C_INCLUDE_PATH)
target_include_directories(netcdf PUBLIC ${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) ENDIF(MPI_C_INCLUDE_PATH)
IF(MOD_NETCDF_NAME) IF(MOD_NETCDF_NAME)