[CMake] Full paths for transitive dependencies

Stephen Kelly steveire at gmail.com
Mon Mar 16 14:50:51 EDT 2015


Richard Taylor wrote:

> 
http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file
>

Prefer the official documentation instead of the wiki wherever official 
documentation exists (especially if it is well-formatted; that means it's 
probably recent and maintained).

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html
 
> However, only the names of dependent targets are set (via
> INTERFACE_LINK_LIBRARIES in <targetname>Targets.cmake)
> 
> I guess that's where the problem lies, I'm just not sure how to fix it..

The above link documents a find_dependency macro, which you might make use 
of.

Thanks,

Steve.




More information about the CMake mailing list