[cmake-developers] Printing the origin of include dirs (Was Setting include directories via target_link_libraries() ?)
Alexander Neundorf
neundorf at kde.org
Tue Dec 18 11:35:04 EST 2012
On Tuesday 18 December 2012, Stephen Kelly wrote:
> Alexander Neundorf wrote:
...
> > Probably it would be good if we could provide also a convenient way to
> > print target properties for debugging purposes, something like
> >
> > cmake_print_properties(Foo::Foo_Libraries PROPERTIES INCLUDE_DIRS BLUB
> > ... )
>
> Because include dirs go through a uniqueness-filter, that doesn't help on
> its own. My branch is a better solution because it tells you the backtrace
> of the includes that were actually used, and where they came from.
even better then :-)
Alex
More information about the cmake-developers
mailing list