`$<TARGET_FILE:...>` fails if the argument is already a path (instead of a library name). This happens when a static library is found via `osg_find_library`. If the argument contains `/` or `.`, do not use `$<TARGET_FILE:...>`