From b60ee2ea2d006b299fdb80864fe79caf76006a80 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Fri, 30 Jul 2021 08:40:42 +0200 Subject: [PATCH] fdpgen: CMake: define NEATOGEN_EXPORTS fdpgen is part of the neato_layout plugin. Fixes errors like this using CMake with MinGW: fdpgen.lib(clusteredges.obj) : error LNK2019: unresolved external symbol __imp_Plegal_arrangement referenced in function compoundEdges [C:\Users\magja\graphviz\build\plugin\neato_layout\gvplugin_neato_layout.vcxproj] Towards https://gitlab.com/graphviz/graphviz/-/issues/2058 --- lib/fdpgen/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fdpgen/CMakeLists.txt b/lib/fdpgen/CMakeLists.txt index d6952dbc1..b29f26cc5 100644 --- a/lib/fdpgen/CMakeLists.txt +++ b/lib/fdpgen/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DNEATOGEN_EXPORTS=1) + add_library(fdpgen STATIC # Header files clusteredges.h -- 2.40.0