Swift: link directories need to be manually propagated on Linux (and possibly macOS) with Ninja
On Linux (and possibly macOS) the link directories need to be propagated manually for local libraries in projects. This is due to the autolinking kicking in and adding a -l<name>
in addition to the absolute path specified by CMake. Because the linker is unable to see the DSO by name, it fails to link. Adding an INTERFACE_LINK_DIRECTORIES
setting on the swift module can work around the issue.
Edited by Brad King