mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
20 lines
571 B
Diff
20 lines
571 B
Diff
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()
|
|
|