diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-02-18 14:57:43 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-02-20 00:25:36 +0530 |
commit | 5a23339e60103b354b6bb4dc6127f06480e1044d (patch) | |
tree | 6114413dc15a3e5840139c0bc21fee36a1726cd4 | |
parent | 8a9cf44c72ee2a71e28c91978edaa7f2d556dd32 (diff) | |
download | meson-5a23339e60103b354b6bb4dc6127f06480e1044d.zip meson-5a23339e60103b354b6bb4dc6127f06480e1044d.tar.gz meson-5a23339e60103b354b6bb4dc6127f06480e1044d.tar.bz2 |
modules/cmake: Use the noPosargs helper
-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 21f144f..03176d8 100644 --- a/mesonbuild/modules/cmake.py +++ b/mesonbuild/modules/cmake.py @@ -18,7 +18,7 @@ import shutil from . import ExtensionModule, ModuleReturnValue from .. import build, dependencies, mesonlib, mlog -from ..interpreterbase import permittedKwargs, FeatureNew, stringArgs, InterpreterObject, ObjectHolder +from ..interpreterbase import permittedKwargs, FeatureNew, stringArgs, InterpreterObject, ObjectHolder, noPosargs from ..interpreter import ConfigurationDataHolder, InterpreterException, SubprojectHolder @@ -105,10 +105,9 @@ class CMakeSubprojectHolder(InterpreterObject, ObjectHolder): info = self._args_to_info(args) return info['func'] + @noPosargs @permittedKwargs({}) def target_list(self, args, kwargs): - if len(args) > 0: - raise InterpreterException('target_list does not take any parameters.') return self.held_object.cm_interpreter.target_list() class CmakeModule(ExtensionModule): |