aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/cmake.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-02-18 14:57:43 -0800
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-02-19 07:07:35 +0530
commit52d36aaec13966b68994764191c8881edc92291e (patch)
tree079fec956fe262ef651c7a1c543eaf52063fb92e /mesonbuild/modules/cmake.py
parentf4b34710d74a9279c4fd3903bd2795bdb3a75a80 (diff)
downloadmeson-52d36aaec13966b68994764191c8881edc92291e.zip
meson-52d36aaec13966b68994764191c8881edc92291e.tar.gz
meson-52d36aaec13966b68994764191c8881edc92291e.tar.bz2
modules/cmake: Use the noPosargs helper
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 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):