From 06e6fefdf564dc78e18a4661540a757c8cb30b6d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 25 Sep 2021 11:31:03 -0700 Subject: [PATCH] gv2gml: also link to libgvc Upcoming changes will make use of some functionality from libcommon, which is consolidated into libgvc. Related to #1276. --- cmd/tools/CMakeLists.txt | 2 +- cmd/tools/Makefile.am | 1 + cmd/tools/gv2gml.vcxproj | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/tools/CMakeLists.txt b/cmd/tools/CMakeLists.txt index 172d94b36..412a38694 100644 --- a/cmd/tools/CMakeLists.txt +++ b/cmd/tools/CMakeLists.txt @@ -140,7 +140,7 @@ target_include_directories(gv2gml PRIVATE ${GRAPHVIZ_LIB_DIR}/gvc ${GRAPHVIZ_LIB_DIR}/pathplan ${Getopt_INCLUDE_DIRS}) -target_link_libraries(gv2gml cgraph ingraphs) +target_link_libraries(gv2gml cgraph gvc ingraphs) if(NOT HAVE_GETOPT_H) target_link_libraries(gv2gml ${Getopt_LINK_LIBRARIES}) endif(NOT HAVE_GETOPT_H) diff --git a/cmd/tools/Makefile.am b/cmd/tools/Makefile.am index 966bb86f5..5a293619b 100644 --- a/cmd/tools/Makefile.am +++ b/cmd/tools/Makefile.am @@ -303,6 +303,7 @@ endif gv2gml_SOURCES = gv2gml.c gv2gml_LDADD = \ + $(top_builddir)/lib/gvc/libgvc.la \ $(top_builddir)/lib/ingraphs/libingraphs_C.la \ $(top_builddir)/lib/cgraph/libcgraph.la diff --git a/cmd/tools/gv2gml.vcxproj b/cmd/tools/gv2gml.vcxproj index 44fe2b2d7..562367d9f 100644 --- a/cmd/tools/gv2gml.vcxproj +++ b/cmd/tools/gv2gml.vcxproj @@ -69,7 +69,7 @@ Console MachineX86 $(OutDir);$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\lib - getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;%(AdditionalDependencies) + getopt.lib;cdt.lib;cgraph.lib;gvc.lib;ingraphs.lib;%(AdditionalDependencies) copy $(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\bin\getopt.dll $(OutDir)getopt.dll @@ -91,7 +91,7 @@ true MachineX86 $(OutDir);$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\lib - getopt.lib;cdt.lib;cgraph.lib;ingraphs.lib;%(AdditionalDependencies) + getopt.lib;cdt.lib;cgraph.lib;gvc.lib;ingraphs.lib;%(AdditionalDependencies) copy $(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\bin\getopt.dll $(OutDir)getopt.dll -- 2.40.0