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

index 78405eb20bdaba22ef555600b9a1da4a515218cc..1cf7e6e4aa45da76b1feff248a75e469b402c811 100644 (file)
@@ -15,3 +15,7 @@ target_include_directories(osage PRIVATE
     ${GRAPHVIZ_LIB_DIR}/pack
     ${GRAPHVIZ_LIB_DIR}/pathplan
 )
+
+target_link_libraries(osage PRIVATE
+    cgraph
+)