]> granicus.if.org Git - graphviz/commit
neatogen: CMake: define NEATOGEN_EXPORTS
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 26 Jul 2021 14:01:00 +0000 (16:01 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:00 +0000 (07:35 +0100)
commit664c4dee10932949d5dfe77e0f8b7c484e1be8b5
treee98b181c359ab1074bbaf6fdea1cb1c5291864df
parentb60ee2ea2d006b299fdb80864fe79caf76006a80
neatogen: CMake: define NEATOGEN_EXPORTS

It is not automatically set for static libraries, only for shared
libraries.

Fixes errors like this using CMake with MinGW:

neatogen.lib(neatoinit.obj) : error LNK2019: unresolved external symbol __imp_circuit_model referenced in function kkNeato [C:\Users\magja\graphviz\build\plugin\neato_layout\gvplugin_neato_layout.vcxproj]

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058
lib/neatogen/CMakeLists.txt