From 84937a13e53ca31946c89dbc8130661ca061a5dc Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 17 Feb 2022 08:00:10 +1100 Subject: [PATCH] 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 --- plugin/gd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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} ) -- 2.40.0