From d5e47ade8078a9c4e945f530ed40a61daf75c040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabr=C3=ADel=20Arth=C3=BAr=20P=C3=A9tursson?= Date: Sun, 2 Jul 2017 21:43:09 +0000 Subject: doc: Mention that C/C++ language versions can be set per-target --- docs/markdown/howtox.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/markdown/howtox.md b/docs/markdown/howtox.md index f95dfb9..2dd5ddf 100644 --- a/docs/markdown/howtox.md +++ b/docs/markdown/howtox.md @@ -17,6 +17,12 @@ project('myproj', 'c', 'cpp', default_options : ['c_std=c11', 'cpp_std=c++11']) ``` +The language version can also be set on a per-target basis. + +```meson +executable(..., override_options : ['c_std=c11']) +``` + ## Enable threads Lots of people seem to do this manually with `find_library('pthread')` or something similar. Do not do that. It is not portable. Instead do this. -- cgit v1.1