Skip to content

graphviz: distinguish target dependency types

Nico Müller requested to merge niecore/cmake:master into master
  • The output graph of graphviz differs now between target link types

Example:

add_library(A dummy.c)
target_link_libraries(A
        PUBLIC
        B
        PRIVATE
        C
        INTERFACE
        D)

add_library(B dummy.c)
#target_link_libraries(B PUBLIC C)

add_library(C dummy.c)
target_link_libraries(C PRIVATE D)

add_library(D dummy.c)

Would lead to the following graphs:

All Targets

Foo.A

Fixes: #17192 (closed)
Topic-rename: graphviz-link-type

Edited by Nico Müller

Merge request reports