2020-11-12 07:19:56 +08:00
|
|
|
diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt
|
2021-11-19 13:25:08 +08:00
|
|
|
index 9e126ec..1363d35 100644
|
2020-11-12 07:19:56 +08:00
|
|
|
--- a/liblib/CMakeLists.txt
|
|
|
|
+++ b/liblib/CMakeLists.txt
|
2021-11-19 13:25:08 +08:00
|
|
|
@@ -79,8 +79,14 @@ ENDIF()
|
|
|
|
IF(USE_HDF5)
|
2020-11-12 07:19:56 +08:00
|
|
|
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()
|
2021-11-19 13:25:08 +08:00
|
|
|
elseif(0)
|
|
|
|
IF(NOT MSVC)
|