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

index eebbe5b68e841d32a3ab306186fa4573be6dd708..7aa09faaf794ec86880748d853fd7831be622c1e 100644 (file)
@@ -1,3 +1,5 @@
+add_definitions(-DNEATOGEN_EXPORTS=1)
+
 add_library(circogen STATIC
     # Header files
     block.h