[cmake-developers] hdf5 dependency on mpi

Brad King brad.king at kitware.com
Mon Apr 22 12:00:56 EDT 2013


On 04/22/2013 11:52 AM, Biddiscombe, John A. wrote:
> Can I add the #include and link into the hdf5-config.cmake?
> This is what I was advised not to do before.

The package config file should have only declarative effects and not
actually modify the loading project's build, so that advice was correct.

The _INCLUDE_DIRS, _LIBRARIES, etc. variables that hdf5-config.cmake
provides should already be populated with the transitive dependencies.
It should be able to do this without find_package(MPI) too.

-Brad



More information about the cmake-developers mailing list