cmake: fixed soversion pattern and added a warning if matches goes wrong
cmake: fixed soversion pattern and added a warning if matches goes wrong

Pallavi-Banerjee21/votca.tools,vaidyanathanms/votca.tools