Cover both cases of shared lib depends in the BuildDepends test.

The commit 306796e8 (Teach BuildDepends test to cover
LINK_DEPENDS_NO_SHARED, 2012-11-09) did not cover both cases.
Don't relink shared libraries by default if dependencies files change.

This replaces the LINK_DEPENDS_NO_SHARED target property and associated
variable introduced in commit ed976313 (Optionally skip link dependencies
on shared library files, 2012-10-26) with LINK_DEPENDS_SHARED_LIBRARIES
which is the logical opposite.
Merge topic 'add-CMAKE_LINK_DEPENDS_SHARED_LIBRARIES-variable' into next

6e95485 Don't relink shared libraries by default if dependencies files change.
02aa1e4 Cover both cases of shared lib depends in the BuildDepends test.