cmake: populate build name correctly