]> granicus.if.org Git - graphviz/commitdiff
patchwork: add linking to cgraph
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 28 Aug 2021 17:39:29 +0000 (19:39 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 29 Aug 2021 20:13:40 +0000 (22:13 +0200)
E.g. patchwork.c uses agfstnode from lib/cgraph/node.c.

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

lib/patchwork/CMakeLists.txt

index 0ef621f0e0a1553103b6512320945e42bb7417e9..0ee7d954ec2298912274b6415a85e6444ff82ef2 100644 (file)
@@ -18,3 +18,7 @@ target_include_directories(patchwork PRIVATE
     ${GRAPHVIZ_LIB_DIR}/pack
     ${GRAPHVIZ_LIB_DIR}/pathplan
 )
+
+target_link_libraries(patchwork PRIVATE
+    cgraph
+)