diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-22 18:09:19 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-12-22 18:09:19 (GMT) |
commit | 7e8d2c982199c03dc5aa4fd95dd7d44b83d84f65 (patch) | |
tree | 492e042ff436fe4abc87feeb00f9cde12465f589 | |
parent | f7e4d92de62766e9b3ed49250b740ca25a347e57 (diff) | |
download | hdf5-7e8d2c982199c03dc5aa4fd95dd7d44b83d84f65.zip hdf5-7e8d2c982199c03dc5aa4fd95dd7d44b83d84f65.tar.gz hdf5-7e8d2c982199c03dc5aa4fd95dd7d44b83d84f65.tar.bz2 |
Standalone needs MPI libs
-rw-r--r-- | tools/perform/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perform/CMakeLists.txt b/tools/perform/CMakeLists.txt index 676947e..ff61f52 100644 --- a/tools/perform/CMakeLists.txt +++ b/tools/perform/CMakeLists.txt @@ -166,10 +166,10 @@ if (H5_HAVE_PARALLEL AND BUILD_TESTING) target_include_directories (h5perf_alone PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TOOLS_SRC_DIR}/lib;$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") if (NOT BUILD_SHARED_LIBS) TARGET_C_PROPERTIES (h5perf_alone STATIC) - target_link_libraries (h5perf_alone PRIVATE ${HDF5_LIB_TARGET}) + target_link_libraries (h5perf_alone PRIVATE ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>") else () TARGET_C_PROPERTIES (h5perf_alone SHARED) - target_link_libraries (h5perf_alone PRIVATE ${HDF5_LIBSH_TARGET}) + target_link_libraries (h5perf_alone PRIVATE ${HDF5_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>") endif () set_target_properties (h5perf_alone PROPERTIES FOLDER perform) set_property (TARGET h5perf_alone |