On 12 August 2012 , One Direction performed " What Makes You Beautiful " at the 2012 Summer Olympics closing ceremony in London , which represented the handover to Rio de Janeiro as the host of the 2016 Summer Olympics .