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