From: Matthew Fernandez Date: Wed, 16 Feb 2022 21:00:10 +0000 (+1100) Subject: CMake: fix: link against pathplan when building GD plugin X-Git-Tag: 4.0.0~199^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84937a13e53ca31946c89dbc8130661ca061a5dc;p=graphviz CMake: fix: link against pathplan when building GD plugin This replicates something from the Autotools build system that was missing in the CMake build system. The CMake build was not failing because the pathplan dependency is only required when VRML support is enabled, which an upcoming commit will add. In contrast to the Autotools build system, this adds pathplan for all platforms, not only Windows. Empirically it seems necessary on at least macOS and Windows and it does no harm on Linux. Gitlab: related to #1786 --- diff --git a/plugin/gd/CMakeLists.txt b/plugin/gd/CMakeLists.txt index 018c71baf..284254a6a 100644 --- a/plugin/gd/CMakeLists.txt +++ b/plugin/gd/CMakeLists.txt @@ -24,6 +24,7 @@ if(GD_FOUND) target_link_libraries(gvplugin_gd cgraph gvc + pathplan ${GD_LIBRARIES} )