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 wi
>
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
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_
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 "kernel32;ws2