summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2025-10-03 18:25:55 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-10-03 10:59:08 -0700
commit2cea370a7bfb47343d8fd5f8c6453a21c9aac7a0 (patch)
tree0f1410f37968173de325c0af714b79fb4dc7521d
parent457404668579cc04697912d2863df0ec62f3fabf (diff)
downloadmeson-2cea370a7bfb47343d8fd5f8c6453a21c9aac7a0.tar.gz
cmake: warn about unknown generator expressions
If a given project uses a generator expression that meson does not support it will change the outcome and potentially result in wrong behavior, the user should be aware of that so they can deal with it.
-rw-r--r--mesonbuild/cmake/generator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/cmake/generator.py b/mesonbuild/cmake/generator.py
index a617f8adb..fcc37cde7 100644
--- a/mesonbuild/cmake/generator.py
+++ b/mesonbuild/cmake/generator.py
@@ -170,6 +170,8 @@ def parse_generator_expressions(
# Evaluate the function
if func in supported:
res = supported[func](args)
+ else:
+ mlog.warning(f"Unknown generator expression '$<{func}:{args}>'.", once=True, fatal=False)
return res