summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-03 19:03:58 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-03 19:03:58 +0200
commit935cc99a1ab7f4e5284c89bcb3d6b85dc7dcb07c (patch)
tree68b120fa4af1e276ea60d6a92d42b97c0c76bfe1
parent1997ac2478c600336e89b2deb5e75ae02bef0fd3 (diff)
downloadmeson-noabssubdir.tar.gz
Install header\'s subdir must not be absolute.noabssubdir
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 8bde727a4..e48733aa0 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: