summaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-08-27 13:09:54 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-10-01 08:26:40 -0700
commit626f4fd244f29c86469b5675ff7d48e32bf5d82d (patch)
treeab1dc123c75bbab1a3b3de3e2d411c975dd3b26f /mesonbuild/modules
parent2ce15a690601101826cad501a9b9e24a0c774252 (diff)
downloadmeson-626f4fd244f29c86469b5675ff7d48e32bf5d82d.tar.gz
modules/cmake: use typed_pos_args for subproject.dependency
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/cmake.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/cmake.py b/mesonbuild/modules/cmake.py
index 78a1a0cf9..b73c90462 100644
--- a/mesonbuild/modules/cmake.py
+++ b/mesonbuild/modules/cmake.py
@@ -132,9 +132,9 @@ class CMakeSubproject(ModuleObject):
@FeatureNewKwargs('dependency', '0.56.0', ['include_type'])
@permittedKwargs({'include_type'})
- @stringArgs
- def dependency(self, state: ModuleState, args: T.List[str], kwargs: T.Dict[str, str]) -> dependencies.Dependency:
- info = self._args_to_info(args)
+ @typed_pos_args('cmake.subproject.dependency', str)
+ def dependency(self, state: ModuleState, args: T.Tuple[str], kwargs: T.Dict[str, str]) -> dependencies.Dependency:
+ info = self._args_to_info(list(args))
if info['func'] == 'executable':
raise InvalidArguments(f'{args[0]} is an executable and does not support the dependency() method. Use target() instead.')
if info['dep'] is None: