[cmake] Set ROOT_VERSION to major.minor.patch (ROOT-10142):
[cmake] Set ROOT_VERSION to major.minor.patch (ROOT-10142):

This was the intent, the regex was simply broken and did not take the trailing versioning part into account.
Now, -patches as minor ".99", otherwise as expected.
This can be improved in the future by also adding the commit count to patches, aka 6.16.06.42 for the 42th commit after 6.16.06.

root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,olifre/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,olifre/root,karies/root,karies/root,karies/root,olifre/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,olifre/root