]> granicus.if.org Git - graphviz/commitdiff
common: CMake: add linking to pathplan
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 25 Aug 2021 03:59:12 +0000 (05:59 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 28 Aug 2021 18:12:09 +0000 (20:12 +0200)
E.g. lib/common/emit.c uses freePath from lib/pathplan/util.c.

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

lib/common/CMakeLists.txt

index 3cde1e3183447b0a9587b9ac6866faf03e8992a7..246e9aa826a8a955f1337fd618ff9b4eeba82e83 100644 (file)
@@ -114,6 +114,10 @@ add_library(common STATIC
     $<TARGET_OBJECTS:common_obj>
 )
 
+target_link_libraries(common PRIVATE
+    pathplan
+)
+
 # Specify headers to be installed
 install(
     FILES