summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-24 13:21:55 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-24 13:21:55 (GMT)
commit34a68acc934800d6b8c9a51c2ce91155b3178111 (patch)
treec26888cbd22939f14e7291ba54d043f13157cfb0
parent9d9044e0e9dcd79495be7727a9696e9926811142 (diff)
parent0350f4d000abf7051c1d03810d45c007e66734da (diff)
downloadhdf5-34a68acc934800d6b8c9a51c2ce91155b3178111.zip
hdf5-34a68acc934800d6b8c9a51c2ce91155b3178111.tar.gz
hdf5-34a68acc934800d6b8c9a51c2ce91155b3178111.tar.bz2
Merge pull request #2185 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '0350f4d000abf7051c1d03810d45c007e66734da': Add MPI libs to standalone perf
-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