(build): forbid module linking, even for tests
Description
When testing a module, linking directly with it, while starting it, could lead to undetermined error and hard to catch because the macro SIGHT_REGISTER_PLUGIN
is called twice.
Module linking is already forbidden for module, but we should disallow it also for tests.
Proposal
Set a erroneous linking option when linking a module. Easy, simple and a bit dirty.
Outcomes
No more able to link anything with a module.