diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-24 17:18:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-28 21:52:39 +0300 |
commit | 8e2f2d8d7e75378cc86650117883558472ac395e (patch) | |
tree | fb990774f2ba23ead09b558b1108ac5d3c7f149d /docs/markdown/snippets/customimplicit.md | |
parent | 268a78f0f473c1b5193e8b44a067030b74a6559d (diff) | |
download | meson-implicitcustom.tar.gz |
Do not add custom target dir automatically when implicit false.implicitcustom
Diffstat (limited to 'docs/markdown/snippets/customimplicit.md')
-rw-r--r-- | docs/markdown/snippets/customimplicit.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/snippets/customimplicit.md b/docs/markdown/snippets/customimplicit.md new file mode 100644 index 000000000..8956c696f --- /dev/null +++ b/docs/markdown/snippets/customimplicit.md @@ -0,0 +1,17 @@ +## Do not add custom target dir to header path if `implicit_include_directories` is `false` + +If you do the following: + +```meson +# in some subdirectory +gen_h = custom_target(...) +# in some other directory +executable('foo', 'foo.c', gen_h) +``` + +then the output directory of the custom target is automatically added +to the header search path. This is convenient, but sometimes it can +lead to problems. Starting with this version, the directory will no +longer be put in the search path if the target has +`implicit_include_directories: false`. In these cases you need to set +up the path manually with `include_directories`. |