Architects across the world have signed up to a global commitment to eliminate CO2 emissions in the built environment by 2050.