diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-04-09 14:30:58 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-05-28 15:17:10 -0400 |
commit | a734bcfc83a67788f71b5b84a46a4d9727b5ec09 (patch) | |
tree | c36f478aea7a741cbe78d8ba4a5ad0fb5c112d0e /mesonbuild/modules/cmake.py | |
parent | 3340284805b96a4b9b62405f626020276341944c (diff) | |
download | meson-a734bcfc83a67788f71b5b84a46a4d9727b5ec09.zip meson-a734bcfc83a67788f71b5b84a46a4d9727b5ec09.tar.gz meson-a734bcfc83a67788f71b5b84a46a4d9727b5ec09.tar.bz2 |
modules: Stop using ModuleReturnValue where it's not needed
It is only needed in functions that need to add targets to the
interpreter.
Diffstat (limited to 'mesonbuild/modules/cmake.py')
-rw-r--r-- | mesonbuild/modules/cmake.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/cmake.py b/mesonbuild/modules/cmake.py index 048b59e..b488843 100644 --- a/mesonbuild/modules/cmake.py +++ b/mesonbuild/modules/cmake.py @@ -390,9 +390,8 @@ class CmakeModule(ExtensionModule): @FeatureNew('subproject_options', '0.55.0') @noKwargs @noPosargs - def subproject_options(self, state, args, kwargs) -> ModuleReturnValue: - opts = CMakeSubprojectOptions() - return ModuleReturnValue(opts, []) + def subproject_options(self, state, args, kwargs) -> CMakeSubprojectOptions: + return CMakeSubprojectOptions() def initialize(*args, **kwargs): return CmakeModule(*args, **kwargs) |