cmComputeLinkInformation: Better RPATH detection for versioned libraries.
Some libraries uses the non-conventional SONAME scheme like
libssl.so.1.1
or libboost_system.so.1.64.0
, but CMake didn't count on
such versioned libraries. This commit modify regular expressions to match
relaxed format of shared library name for determining various linker options,
especially RPATH
.
Note that support for one component has been available since v2.8.12.
Fixes: #15938 (closed)
Topic-rename: recognize-versioned-shared-libraries
Edited by Brad King