fix scope for cmake