Adding a link library to a module

If I want to link an external library to a module I believe I need to use
target_link_library(…).
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
target_link_libraries(Wrapping::Wrappable
PUBLIC
ogdf)
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

thanks,
David

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

target_link_libraries(vtkWrappable

Thank you, David that worked.

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