diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-12-20 19:42:23 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-12-20 19:42:23 (GMT) |
commit | a17349a872f1c5b3457a8777e8f67a00587769e2 (patch) | |
tree | 95592b2e472257f75099a7fad4acac78246c674a /examples/CMakeLists.txt | |
parent | bbcf9f31c6af52f88657e5ea738d8821a9702c73 (diff) | |
download | hdf5-a17349a872f1c5b3457a8777e8f67a00587769e2.zip hdf5-a17349a872f1c5b3457a8777e8f67a00587769e2.tar.gz hdf5-a17349a872f1c5b3457a8777e8f67a00587769e2.tar.bz2 |
Reworked MPI includes to be used as default with parallel
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r-- | examples/CMakeLists.txt | 4 |
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 () |