[cmake] Factor out verison-from-file setting into function.
[cmake] Factor out verison-from-file setting into function.

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