Brad, Stephen

OK. I can add the find_package to the hdf5-config.cmake
But the user still has to add the include path to their own projects, and link 
each target against mpi.

Paraview, for example, fails to build when you link against a system hdf5 which 
has parallel enabled. You have to manually change about 5 different cmakelists 
files to get it to work, if the hdf5_config, transitively added the link, it'd 
be much nicer.

Can I add the #include and link into the hdf5-config.cmake?
This is what I was advised not to do before. I can't find the advice on google, 
but will try harder if you really want it

JB

-----Original Message-----
From: cmake-developers-boun...@cmake.org 
[mailto:cmake-developers-boun...@cmake.org] On Behalf Of Stephen Kelly
Sent: 22 April 2013 17:13
To: cmake-developers@cmake.org
Subject: Re: [cmake-developers] hdf5 dependency on mpi (was: CMake 2.8.11-rc3 
ready for testing!)

Brad King wrote:

> 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).

I was going to suggest the same. The 

 "C:\Program Files\hdf5-1.8.11\cmake\hdf5\hdf5-config.cmake"

file should contain find_package(mpi), if that is needed.

> The new features do not provide a new way to solve this problem AFAIK.

As far as I understand the issue, I agree. Even if the new features were used 
for another reason, the need for the find_package would still be there.

Thanks,

Steve.


--

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
--

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

Reply via email to