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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
