[CMake] Fwd: cmake --graphviz not dumping custom target in the graph

Eric Noulard eric.noulard at gmail.com
Wed Mar 29 11:50:33 EDT 2017


---------- Forwarded message ----------
From: Eric Noulard <eric.noulard at gmail.com>
Date: 2017-03-29 17:50 GMT+02:00
Subject: Re: [CMake] cmake --graphviz not dumping custom target in the graph
To: Craig Scott <craig.scott at crascit.com>


After checking this does not change.
It seems that the only targets that appear in the graph are the one from
add_executable/add_library

In fact the culprit seems to be:

https://gitlab.kitware.com/cmake/cmake/blob/master/
Source/cmGraphVizWriter.cxx

cmGraphVizWriter::GenerateForTargetType

which filters out other kind of target.

2017-03-29 16:46 GMT+02:00 Eric Noulard <eric.noulard at gmail.com>:

> I did not try that.
> It appears that none of my custom target do belong to ALL.
> I'll try right away and let you know.
>
> 2017-03-29 14:30 GMT+02:00 Craig Scott <craig.scott at crascit.com>:
>
>> Does the behavior change if your custom target is part of the ALL target
>> or not?
>>
>> On Wed, Mar 29, 2017 at 10:37 PM, Eric Noulard <eric.noulard at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> It appears that  cmake --graphviz command line option does not dump
>>> custom target
>>> in the generated dot graph but "only" target appearing in add_executable
>>> or add_library (plain or IMPORTED).
>>>
>>> Is there any fundamental reason for that ?
>>>
>>> I'd like to see ALL target (including custom) in my dependency graph.
>>>
>>> --
>>> Eric
>>>
>>> --
>>>
>>> Powered by www.kitware.com
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Kitware offers various services to support the CMake community. For more
>>> information on each offering, please visit:
>>>
>>> CMake Support: http://cmake.org/cmake/help/support.html
>>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/cmake
>>>
>>
>>
>>
>> --
>> Craig Scott
>> Melbourne, Australia
>> https://crascit.com
>>
>
>
>
> --
> Eric
>



-- 
Eric



-- 
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170329/bfefd3c8/attachment.html>


More information about the CMake mailing list