diff --git a/hdf5-filter/H5Z-SZ/CMakeLists.txt b/hdf5-filter/H5Z-SZ/CMakeLists.txt index 65b8e06..3a26074 100644 --- a/hdf5-filter/H5Z-SZ/CMakeLists.txt +++ b/hdf5-filter/H5Z-SZ/CMakeLists.txt @@ -7,6 +7,10 @@ target_link_libraries( hdf5sz PUBLIC SZ ${HDF5_LIBRARIES} ) +if(${HDF5_IS_PARALLEL}) + find_package(MPI REQUIRED) + target_link_libraries(hdf5sz PUBLIC MPI::MPI_CXX) +endif() target_include_directories( hdf5sz PUBLIC