aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-03 19:03:58 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-04 01:49:28 +0200
commit65487f1599eff87dba22b83e0519a21a31dd1bba (patch)
treefab007883606521ec501a893268eefc98e9853d9
parent0de4f199b3aa30939436742cfcd706412ea498e9 (diff)
downloadmeson-65487f1599eff87dba22b83e0519a21a31dd1bba.zip
meson-65487f1599eff87dba22b83e0519a21a31dd1bba.tar.gz
meson-65487f1599eff87dba22b83e0519a21a31dd1bba.tar.bz2
Install header\'s subdir must not be absolute.
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 2 insertions, 0 deletions
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: