From e2f4e926b2f5ef2419dad8a3a5a5fc73fa3b5937 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 25 Mar 2019 23:42:58 +0200 Subject: Reduce absolute paths to a deprecation. Closes #5050. --- mesonbuild/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 654f6272f..c17298e16 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -612,7 +612,7 @@ class Headers(InterpreterObject): 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.') + mlog.deprecation('Subdir keyword must not be an absolute path. This will be a hard error in the next release.') 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.2.3