cmGeneratorTarget: only apply short object names when necessary When there is no PCH extension, there is no source file necessary as the source is not compiled at all.