[CMake] --graphviz and generator expressions
Andrew Fuller
mactalla.obair at gmail.com
Thu Jun 5 14:08:34 EDT 2014
After more investigation it appears --graphviz does handle generator
expressions ... partially. In particular it seems to get tripped up with
$<JOIN:...>
Example:
set( _test
one
two
)
target_link_libraries( my_target PRIVATE
$<$<PLATFORM_ID:Windows>:$<JOIN:${_test}>> )
The graph generated on Linux shows a dependency on 'two' but not on 'one'.
Am I doing something wrong, or should I file a bug?
On Thu, Jun 5, 2014 at 9:41 AM, Andrew Fuller <mactalla.obair at gmail.com>
wrote:
> I'm trying out the --graphviz option to visualize link dependencies --
> very useful!
>
> It seems to me that it does not understand generator expressions. We make
> use of generator expressions to bring in platform-specific libraries and
> when I generate the graphviz on Linux I'm still seeing Windows libraries in
> the graph.
>
> What is the proper way to generate the graph for a particular
> configuration?
>
> Thanks,
> -Andrew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140605/bf9fcae2/attachment.html>
More information about the CMake
mailing list