diff options
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/deprecate_source_build_root.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/deprecate_source_build_root.md b/docs/markdown/snippets/deprecate_source_build_root.md index 05b6b91..1cebef4 100644 --- a/docs/markdown/snippets/deprecate_source_build_root.md +++ b/docs/markdown/snippets/deprecate_source_build_root.md @@ -3,3 +3,8 @@ Those function are common source of issue when used in a subproject because they point to the parent project root which is rarely what is expected and is a violation of subproject isolation. + +`meson.current_source_dir()` and `meson.current_build_dir()` should be used instead +and have been available in all Meson versions. New functions `meson.project_source_root()` +and `meson.project_build_root()` have been added in Meson 0.56.0 to get the root +of the current (sub)project. |