Cleanup CMake code to build shared libraries

Get rid of the CMake code to set -fPIC for relocatable shared libraries manually. At the same time, also get rid of the unused functionality to build static libraries and setting the SOVERSION.

Merge request reports

Loading