CustomTarget: require install_dir only when install is true (#519)

pull/521/head
Nirbheek Chauhan 9 years ago committed by Jussi Pakkanen
parent 8cd359acbb
commit 35ef1d109a
  1. 1
      mesonbuild/build.py

@ -871,6 +871,7 @@ class CustomTarget:
self.install = kwargs['install'] self.install = kwargs['install']
if not isinstance(self.install, bool): if not isinstance(self.install, bool):
raise InvalidArguments('"install" must be boolean.') raise InvalidArguments('"install" must be boolean.')
if self.install:
if 'install_dir' not in kwargs: if 'install_dir' not in kwargs:
raise InvalidArguments('"install_dir" not specified.') raise InvalidArguments('"install_dir" not specified.')
self.install_dir = kwargs['install_dir'] self.install_dir = kwargs['install_dir']

Loading…
Cancel
Save