On 04/22/2013 10:46 AM, Biddiscombe, John A. wrote: > "C:\Program Files\hdf5-1.8.11\cmake\hdf5\hdf5-config.cmake" > find_package(HDF5 NO_MODULE) > then the user’s project has a ‘hidden’ dependency on mpi
In similar cases (in VTK and ITK) we have the package config file do find_package() for transitive dependencies. One may pre-populate any cache entries that the find module needs using the results from the original build tree (assuming the dependency does not move). > What I’d like to di, is in the target import declared by hdf5, > add in this transitive link dependency to m pi. That's basically what I describe above. > In the past I was advised not to do this, but my hope is that > this can be expressed nicely with the new syntax Can you link to where that advice was given? The new features do not provide a new way to solve this problem AFAIK. -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
