]> granicus.if.org Git - graphviz/commitdiff
osage: CMake define NEATOGEN_EXPORTS
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 30 Jul 2021 09:06:15 +0000 (11:06 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:00 +0000 (07:35 +0100)
osage is part of the neato_layout plugin.

Fixes errors like this using CMake with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/osage/libosage.a(osageinit.c.obj):osageinit.c:(.text+0x2ec): undefined reference to `__imp_neato_init_node'

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058

lib/osage/CMakeLists.txt

index 1cf7e6e4aa45da76b1feff248a75e469b402c811..4a1224c4f202f126c11f4c46e4420482f7dcd0b5 100644 (file)
@@ -1,3 +1,5 @@
+add_definitions(-DNEATOGEN_EXPORTS)
+
 add_library(osage STATIC
     # Header files
     osage.h