diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-11-05 19:47:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 19:47:25 (GMT) |
commit | 065a466bc80b0b947eddd2f9c634e0f191c81025 (patch) | |
tree | c61ee8c55729a11b9be894de3f4952f627a9157c /examples | |
parent | e1673be0efa4a4549727bc03db4b719f4e280ad6 (diff) | |
download | hdf5-065a466bc80b0b947eddd2f9c634e0f191c81025.zip hdf5-065a466bc80b0b947eddd2f9c634e0f191c81025.tar.gz hdf5-065a466bc80b0b947eddd2f9c634e0f191c81025.tar.bz2 |
Merge #2198 CMake MPI link (#2216)
Diffstat (limited to 'examples')
-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 1d2346f..83edbc4 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -74,10 +74,10 @@ if (H5_HAVE_PARALLEL) target_include_directories (${parallel_example} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") if (NOT BUILD_SHARED_LIBS) TARGET_C_PROPERTIES (${parallel_example} STATIC) - target_link_libraries (${parallel_example} PRIVATE ${HDF5_LIB_TARGET} ${MPI_C_LIBRARIES}) + target_link_libraries (${parallel_example} PRIVATE ${HDF5_LIB_TARGET} MPI::MPI_C) else () TARGET_C_PROPERTIES (${parallel_example} SHARED) - target_link_libraries (${parallel_example} PRIVATE ${HDF5_LIBSH_TARGET} ${MPI_C_LIBRARIES}) + target_link_libraries (${parallel_example} PRIVATE ${HDF5_LIBSH_TARGET} MPI::MPI_C) endif () set_target_properties (${parallel_example} PROPERTIES FOLDER examples) |