Plugins are re-linked every time libavogadro changes

Hello!
I’ve found that all plugin libraries are re-linked if there were some changes in sources of libavogadro, even if plugin sources aren’t re-compiled. I’ve also found that Avogadro runs normally without this re-linking of plugins. Maybe there’s some CMake magic to prevent this and save a bit of time?


Regards,
Konstantin

On Tuesday 23 February 2010 06:42:31 Konstantin Tokarev wrote:

Hello!
I’ve found that all plugin libraries are re-linked if there were some
changes in sources of libavogadro, even if plugin sources aren’t
re-compiled. I’ve also found that Avogadro runs normally without this
re-linking of plugins. Maybe there’s some CMake magic to prevent this and
save a bit of time?

CMake cannot be sure that the interface to the avogadro library did not
change, therefore it relinks to be safe. You can do a 'make -j3 avogadro/fast’
to recompile just the Avogadro library. make help will list all targets, /fast
skips any dependency resolution.

Marcus