fix cpp setting