aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-24 17:18:03 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-29 18:57:34 +0300
commite80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd (patch)
treed85c4738d0315073267bb97728b12ae4e9af39ac /docs
parent448b11cb7fb41199880cc60d9fce040ea0cf5a3b (diff)
downloadmeson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.zip
meson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.tar.gz
meson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.tar.bz2
Do not add custom target dir automatically when implicit false.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/customimplicit.md17
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..8956c69
--- /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`.