summaryrefslogtreecommitdiffstats
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-01-12 23:51:42 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-01-12 23:51:42 (GMT)
commit120d02657b4c7dff45dd8e83b8f1aaa0c7e51373 (patch)
tree19935f8689df3319e6661f8b393d6eda16cefd45 /examples/CMakeLists.txt
parent37318f109a294bb47e5040be5888963967c1badc (diff)
parentaef900c6741aea851b218169648185b1c8e5e435 (diff)
downloadhdf5-120d02657b4c7dff45dd8e83b8f1aaa0c7e51373.zip
hdf5-120d02657b4c7dff45dd8e83b8f1aaa0c7e51373.tar.gz
hdf5-120d02657b4c7dff45dd8e83b8f1aaa0c7e51373.tar.bz2
Merge branch develop into bugfix/version_bounds
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index d8eb1a2..04a99ce 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -63,13 +63,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 ()