aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/cmake.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-04-09 14:30:58 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-05-28 15:17:10 -0400
commita734bcfc83a67788f71b5b84a46a4d9727b5ec09 (patch)
treec36f478aea7a741cbe78d8ba4a5ad0fb5c112d0e /mesonbuild/modules/cmake.py
parent3340284805b96a4b9b62405f626020276341944c (diff)
downloadmeson-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.py5
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)