Adding a link library to a module

If I want to link an external library to a module I believe I need to use
However when I try this with the Wrapping example module from the distribution I getan
error when configuring cmake:
target_link_libraries can not be used on an ALIAS target.
The offending line from the module CMake file is
If I understand correctly “Wrapping::Wrappable” is considered an alias
so the question then becomes what do I need to add or change
to get a name that is acceptable as the first argument of target_link_libraries


I could be mistaken, but you might just have to remove the prefix: Try using the library name:


Thank you, David that worked.

VTK’s module system provides vtk_module_link for this so that the module name can be used everywhere.