]> granicus.if.org Git - graphviz/commitdiff
fdpgen: add linking to cgraph
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 28 Aug 2021 09:31:12 +0000 (11:31 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 29 Aug 2021 20:13:39 +0000 (22:13 +0200)
E.g. layout.c uses agopen from lib/cgraph/graph.c.

This removes the need to link to cgraph for downstream libraries that
do not explicitly use cgraph.

lib/fdpgen/CMakeLists.txt

index d0c0d7a4c4a361bb44fd17ad9e4796c7670815db..d6952dbc1b120d7ae5a345aa6414a37db71f1832 100644 (file)
@@ -30,5 +30,6 @@ target_include_directories(fdpgen PRIVATE
 )
 
 target_link_libraries(fdpgen PRIVATE
+    cgraph
     pathplan
 )