Compiling HDF5 with Plugins (LZF)

I’m a bit confused here. Do I compile HDF5 FIRST then the Plugin? Or compile the PLUGIN alongside HDF5?

I’m looking for something in the HDF5 CMake codes to just tell HDF5 “I want these additional filters and this is where the source code is located”.

Thanks
Mike Jackson

Yes you can build the plugins at the same time you build hdf5. I do it with tgz files - I plan to move it to use FetchContent like the compression filters, soon.
This is how I do it, you may need to do something different. Note that I use the cacheinit.cmake file for all the other settings.

-DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=ON -DPLUGIN_TGZ_NAME:STRING=hdf5_plugins-master.tar.gz" -DTGZPATH:PATH=${CTEST_SCRIPT_DIRECTORY}/temp -DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING="TGZ"