]> granicus.if.org Git - graphviz/commitdiff
neatogen: add linking to cgraph
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 28 Aug 2021 17:22:00 +0000 (19:22 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 29 Aug 2021 20:13:40 +0000 (22:13 +0200)
E.g. constraint.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/neatogen/CMakeLists.txt

index 412b71d106b8454ff72be5e91bb89885d12b8ecb..722d413b1e305f4871de582deebf685dc74b0299 100644 (file)
@@ -100,3 +100,7 @@ target_include_directories(neatogen PRIVATE
     ${GRAPHVIZ_LIB_DIR}/pack
     ${GRAPHVIZ_LIB_DIR}/pathplan
 )
+
+target_link_libraries(neatogen PRIVATE
+    cgraph
+)