Re: [CMake] Transitive link question

2011-12-15 Thread Michael Hertling
On 12/13/2011 11:00 PM, Biddiscombe, John A. wrote: Sure, when project A is loaded into project B it either needs to search and load the hdf5 cmake file or require that to be done in project B before loading project A. Then the hdf5 target will be known in project B too and linking will

[CMake] Transitive link question

2011-12-13 Thread Biddiscombe, John A.
Project A creates a target which links to hdf5 using the hdf5 cmake generated cmake file which lists the imported location for the debug lib as hdf5d.lib SET_TARGET_PROPERTIES(hdf5 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG C IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG

Re: [CMake] Transitive link question

2011-12-13 Thread Andreas Pakulat
On 13.12.11 15:59:17, Biddiscombe, John A. wrote: Project A creates a target which links to hdf5 using the hdf5 cmake generated cmake file which lists the imported location for the debug lib as hdf5d.lib SET_TARGET_PROPERTIES(hdf5 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG C

Re: [CMake] Transitive link question

2011-12-13 Thread Biddiscombe, John A.
Sure, when project A is loaded into project B it either needs to search and load the hdf5 cmake file or require that to be done in project B before loading project A. Then the hdf5 target will be known in project B too and linking will work fine. Using find_package in project B is an option,