Chemical composition of planet building blocks as predicted by stellar population synthesis