Change for #77589: Setting optimisation with cmake