[cmake-developers] [CMake 0012227]: Transitive dependencies and target properties
Mantis Bug Tracker
mantis at public.kitware.com
Thu May 26 09:19:11 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12227
======================================================================
Reported By: AlexUA
Assigned To:
======================================================================
Project: CMake
Issue ID: 12227
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2011-05-26 09:19 EDT
Last Modified: 2011-05-26 09:19 EDT
======================================================================
Summary: Transitive dependencies and target properties
Description:
CMake have transitive dependecies of libraries linked to target. For example if
A is static library wich depends from SomeLib. And target B is executable wich
depends from A(will link both with A and SomeLib due to transitive dependency).
But the issue is that if we have some specific link_libraries() settings for A
the target B won't link.
I've tryed to fix this manually through usage of additional target property like
TgLinkDirectories this property is set in target A and the used in all dependent
targets.
But this solution will work only in some traverse orders (A->B which might be
not the same in huge and complicated projects).
Actually I need the same functionality for include_directories().
This will help me achive of the functionality like in bjam.
Thanks in advance
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-05-26 09:19 AlexUA New Issue
======================================================================
More information about the cmake-developers
mailing list