Ensure that old-style defining the LINK_LIBRARIES in try_compile works.
Merge topic 'try_compile-targets' into next

6b987f9 Ensure that old-style defining the LINK_LIBRARIES in try_compile works.