diff options
-rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 6200235..0d606e6 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2457,7 +2457,7 @@ class CustomTarget(Target, CommandBase): if not isinstance(self.install, bool): raise InvalidArguments('"install" must be boolean.') if self.install: - if 'install_dir' not in kwargs: + if not kwargs.get('install_dir', False): raise InvalidArguments('"install_dir" must be specified ' 'when installing a target') |