When building a test project to determine the compiler, oddly enough CMake end up pulling in some Pdb2Pdb targets. This is pretty weird. Initial investigations seem to say that the custom SdkResolver causes this somehow. I'm still not sure why.
When resolved, remove the PublishWindowsPdb=false from repo-projects (sdk & deployment-tools).