Do not try to set cmake policy if it doesn't exist