From 65487f1599eff87dba22b83e0519a21a31dd1bba Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 3 Mar 2019 19:03:58 +0200 Subject: Install header\'s subdir must not be absolute. --- mesonbuild/interpreter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/interpreter.py') diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 8bde727..e48733a 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -611,6 +611,8 @@ class Headers(InterpreterObject): InterpreterObject.__init__(self) self.sources = sources self.install_subdir = kwargs.get('subdir', '') + if os.path.isabs(self.install_subdir): + raise InterpreterException('Subdir keyword must not be an absolute path.') self.custom_install_dir = kwargs.get('install_dir', None) self.custom_install_mode = kwargs.get('install_mode', None) if self.custom_install_dir is not None: -- cgit v1.1