summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-12-20 19:42:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-12-20 19:42:41 (GMT)
commitc7bf2222f1cbe97b9fc1e29e21717632874b63b9 (patch)
tree40ddf4132083e9cbc1036bdb429cb9d422d07709 /examples
parent1dbec5a7c30115f98f7ff1785772fd30b1a4f7e9 (diff)
downloadhdf5-c7bf2222f1cbe97b9fc1e29e21717632874b63b9.zip
hdf5-c7bf2222f1cbe97b9fc1e29e21717632874b63b9.tar.gz
hdf5-c7bf2222f1cbe97b9fc1e29e21717632874b63b9.tar.bz2
Reworked MPI includes to be used as default with parallel
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index c9dfed6..e310026 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -55,13 +55,13 @@ if (H5_HAVE_PARALLEL)
add_executable (ph5example ${HDF5_EXAMPLES_SOURCE_DIR}/ph5example.c)
TARGET_NAMING (ph5example STATIC)
TARGET_C_PROPERTIES (ph5example STATIC " " " ")
- target_link_libraries (ph5example ${HDF5_LIB_TARGET})
+ target_link_libraries (ph5example ${HDF5_LIB_TARGET} ${MPI_C_LIBRARIES})
set_target_properties (ph5example PROPERTIES FOLDER examples)
if (BUILD_SHARED_LIBS)
add_executable (ph5example-shared ${HDF5_EXAMPLES_SOURCE_DIR}/ph5example.c)
TARGET_NAMING (ph5example-shared SHARED)
TARGET_C_PROPERTIES (ph5example-shared SHARED " " " ")
- target_link_libraries (ph5example-shared ${HDF5_LIBSH_TARGET})
+ target_link_libraries (ph5example-shared ${HDF5_LIBSH_TARGET} ${MPI_C_LIBRARIES})
set_target_properties (ph5example-shared PROPERTIES FOLDER examples)
endif ()
endif ()