cmake: version detection for submodules