Revert "Don't relink shared libraries by default if dependencies files change."

This reverts commit 6e954854c1afeefcf8621f213dda55e66cea42d1.
Revert "Cover both cases of shared lib depends in the BuildDepends test."

This reverts commit 02aa1e4be3c45a22f27394d0dadc12667ce1430d.
Merge topic 'add-CMAKE_LINK_DEPENDS_SHARED_LIBRARIES-variable' into next

a57c3a4 Revert "Cover both cases of shared lib depends in the BuildDepends test."
675f030 Revert "Don't relink shared libraries by default if dependencies files change."