This is a follow-up MR of !875 (merged) adding the PUBLIC keword to target_link_libraries to remove deprecation warnings.
PUBLIC
target_link_libraries