summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-22 18:17:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-22 18:17:20 (GMT)
commit0350f4d000abf7051c1d03810d45c007e66734da (patch)
treec26888cbd22939f14e7291ba54d043f13157cfb0 /tools
parent9d9044e0e9dcd79495be7727a9696e9926811142 (diff)
downloadhdf5-0350f4d000abf7051c1d03810d45c007e66734da.zip
hdf5-0350f4d000abf7051c1d03810d45c007e66734da.tar.gz
hdf5-0350f4d000abf7051c1d03810d45c007e66734da.tar.bz2
Add MPI libs to standalone perf
Diffstat (limited to 'tools')
-rw-r--r--tools/test/perform/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test/perform/CMakeLists.txt b/tools/test/perform/CMakeLists.txt
index f5a0243..f250065 100644
--- a/tools/test/perform/CMakeLists.txt
+++ b/tools/test/perform/CMakeLists.txt
@@ -179,10 +179,10 @@ if (H5_HAVE_PARALLEL AND BUILD_TESTING)
target_include_directories (h5perf_alone PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TOOLS_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