diff --git a/src/py_build_cmake/config/options/config_option.py b/src/py_build_cmake/config/options/config_option.py index a412a64..edffe86 100644 --- a/src/py_build_cmake/config/options/config_option.py +++ b/src/py_build_cmake/config/options/config_option.py @@ -151,6 +151,7 @@ def iter_set_sub_options( def _verify(self, values: ValueReference): if values.values is None: return + assert self.default_index not in values.values unknown_keys = set(values.values) - set(self.sub_options) msg = "" for k in sorted(unknown_keys):