aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/interpreter.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-04-15 14:58:14 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-04-17 18:28:40 +0300
commitcf4b9e650226892079759bc8f40241f2cec44d09 (patch)
treefb54ca358b3ba7d7607616b731fb6d34b884df9d /mesonbuild/cmake/interpreter.py
parentc0a8abc5809e0ecd72d6180a40acbf05cefbc427 (diff)
downloadmeson-cf4b9e650226892079759bc8f40241f2cec44d09.zip
meson-cf4b9e650226892079759bc8f40241f2cec44d09.tar.gz
meson-cf4b9e650226892079759bc8f40241f2cec44d09.tar.bz2
cmake: Do not compile explicit header files
Diffstat (limited to 'mesonbuild/cmake/interpreter.py')
-rw-r--r--mesonbuild/cmake/interpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py
index f2f635c..7e9873f 100644
--- a/mesonbuild/cmake/interpreter.py
+++ b/mesonbuild/cmake/interpreter.py
@@ -411,6 +411,8 @@ class ConverterTarget:
mlog.warning('CMake: path', mlog.bold(x), 'does not exist.')
mlog.warning(' --> Ignoring. This can lead to build errors.')
return None
+ if Path(x) in trace.explicit_headers:
+ return None
if (
os.path.isabs(x)
and os.path.commonpath([x, self.env.get_source_dir()]) == self.env.get_source_dir()