]> granicus.if.org Git - graphviz/commitdiff
fdpgen: CMake: define NEATOGEN_EXPORTS
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 30 Jul 2021 06:40:42 +0000 (08:40 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:00 +0000 (07:35 +0100)
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

index d6952dbc1b120d7ae5a345aa6414a37db71f1832..b29f26cc5f0b3e56f4605976e4afa0fcaf2c7820 100644 (file)
@@ -1,3 +1,5 @@
+add_definitions(-DNEATOGEN_EXPORTS=1)
+
 add_library(fdpgen STATIC
     # Header files
     clusteredges.h