]> granicus.if.org Git - graphviz/commitdiff
label: add linking to cdt
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 29 Aug 2021 08:48:24 +0000 (10:48 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 30 Aug 2021 15:51:09 +0000 (17:51 +0200)
E.g. lib/label/xlabels.c use Dtobag from lib/cdt/dttree.c.

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

lib/label/CMakeLists.txt

index 8654030db090c7a9fc0ca7d38fcda1f3fc6ff52d..6acfd3061a9ecd9e74d68219d711f2aa815fff69 100644 (file)
@@ -20,3 +20,7 @@ target_include_directories(label PRIVATE
     ${GRAPHVIZ_LIB_DIR}/cgraph
     ${GRAPHVIZ_LIB_DIR}/common
 )
+
+target_link_libraries(label PRIVATE
+    cdt
+)