]> granicus.if.org Git - graphviz/commitdiff
ingraphs: add linking to cgraph
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 29 Aug 2021 13:39:16 +0000 (15:39 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 30 Aug 2021 15:51:09 +0000 (17:51 +0200)
E.g. ingraphs.c uses agsetfile from lib/cgraph/scan.l.

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

lib/ingraphs/CMakeLists.txt

index 47744ceb116616114f493a937c817318d2f27b00..527f94665ecd0da67894ebe19af4ebd37580f51c 100644 (file)
@@ -11,3 +11,7 @@ target_include_directories(ingraphs PRIVATE
     ${GRAPHVIZ_LIB_DIR}/cdt
     ${GRAPHVIZ_LIB_DIR}/cgraph
 )
+
+target_link_libraries(ingraphs PRIVATE
+    cgraph
+)