diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-11-01 16:12:47 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-11-01 16:12:47 (GMT) |
commit | 80c96bb047b0138c6df4d25fbd14e5d63392454e (patch) | |
tree | 8b365d0c6ef2e0e8a4990ca37b4ac942ff9dfc75 /src/CMakeLists.txt | |
parent | 66ef08939ff3e653b1f12d4c2239b2c9fcb31d7e (diff) | |
download | hdf5-80c96bb047b0138c6df4d25fbd14e5d63392454e.zip hdf5-80c96bb047b0138c6df4d25fbd14e5d63392454e.tar.gz hdf5-80c96bb047b0138c6df4d25fbd14e5d63392454e.tar.bz2 |
Change MPI target properties for library
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 96ea589..ad0a326 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -886,7 +886,7 @@ if (NOT WIN32) target_link_libraries (${HDF5_LIB_TARGET} dl) endif () if (H5_HAVE_PARALLEL AND MPI_C_FOUND) - target_link_libraries (${HDF5_LIB_TARGET} ${MPI_C_LIBRARIES}) + target_link_libraries (${HDF5_LIB_TARGET} PRIVATE ${MPI_C_LIBRARIES}) endif () set_global_variable (HDF5_LIBRARIES_TO_EXPORT ${HDF5_LIB_TARGET}) H5_SET_LIB_OPTIONS (${HDF5_LIB_TARGET} ${HDF5_LIB_NAME} STATIC) @@ -930,7 +930,7 @@ if (BUILD_SHARED_LIBS) target_link_libraries (${HDF5_LIBSH_TARGET} dl) endif () if (H5_HAVE_PARALLEL AND MPI_C_FOUND) - target_link_libraries (${HDF5_LIBSH_TARGET} ${MPI_C_LIBRARIES}) + target_link_libraries (${HDF5_LIBSH_TARGET} PRIVATE ${MPI_C_LIBRARIES}) endif () set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_LIBSH_TARGET}") H5_SET_LIB_OPTIONS (${HDF5_LIBSH_TARGET} ${HDF5_LIB_NAME} SHARED ${HDF5_PACKAGE_SOVERSION}) |