diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-24 17:18:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-24 17:18:03 +0200 |
commit | e4c23c63ae7f15f8aff32a256483c50c1c7b61f3 (patch) | |
tree | d130ef6b97359fc076855979e8c04bf9ecf0d59f /docs | |
parent | 703fd6d1fa32e2b5e706a7b6d726de7a3791fdec (diff) | |
download | meson-implicitcustom.zip meson-implicitcustom.tar.gz meson-implicitcustom.tar.bz2 |
Do not add custom target dir automatically when implicit false. Closes #8562.implicitcustom
Diffstat (limited to 'docs')
-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 0000000..fb33367 --- /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`. |