diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-10-12 23:21:11 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-03-22 17:20:48 -0400 |
commit | 8867fb7999e35c6713c46af64becfd1a08146a6a (patch) | |
tree | fb077717b3074e6d480c166d7d7fb14ae9e24b62 /docs/markdown/snippets | |
parent | 999fb3d1e9d4affd95e3ff12039abf787b0b7acf (diff) | |
download | meson-8867fb7999e35c6713c46af64becfd1a08146a6a.zip meson-8867fb7999e35c6713c46af64becfd1a08146a6a.tar.gz meson-8867fb7999e35c6713c46af64becfd1a08146a6a.tar.bz2 |
interpreter: Make compiler options per-subproject
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/per-project-compiler-options.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/per-project-compiler-options.md b/docs/markdown/snippets/per-project-compiler-options.md new file mode 100644 index 0000000..1ccd9b8 --- /dev/null +++ b/docs/markdown/snippets/per-project-compiler-options.md @@ -0,0 +1,9 @@ +## Compiler options can be set per subproject + +All compiler options can now be set per subproject. See +[here](Build-options.md#specifying-options-per-subproject) for details on how +the default value is inherited from main project. + +This is useful for example when the main project requires C++11 but a subproject +requires C++14. The `cpp_std` value from subproject's `default_options` is now +respected. |