aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/minit.py
diff options
context:
space:
mode:
authorJukka Laurila <jlaurila@google.com>2018-02-27 20:54:54 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-06 00:05:17 +0200
commitfcb95847edb05d900725923697974688ab1121bb (patch)
treeca791c6a9a8caba0ac659dc9948ebeed331ab6f6 /mesonbuild/minit.py
parent9819bc9c56f26f582f9dfe413af986cd517b24f2 (diff)
downloadmeson-fcb95847edb05d900725923697974688ab1121bb.zip
meson-fcb95847edb05d900725923697974688ab1121bb.tar.gz
meson-fcb95847edb05d900725923697974688ab1121bb.tar.bz2
Fix the C and C++ project template options, they were reversed before.
Diffstat (limited to 'mesonbuild/minit.py')
-rw-r--r--mesonbuild/minit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py
index 4459a05..7a115c2 100644
--- a/mesonbuild/minit.py
+++ b/mesonbuild/minit.py
@@ -122,8 +122,7 @@ int main(int argc, char **argv) {{
hello_c_meson_template = '''project('{project_name}', 'c',
version : '{version}',
- default_options : ['warning_level=3',
- 'cpp_std=c++14'])
+ default_options : ['warning_level=3'])
exe = executable('{exe_name}', '{source_name}',
install : true)
@@ -147,7 +146,8 @@ int main(int argc, char **argv) {{
hello_cpp_meson_template = '''project('{project_name}', 'cpp',
version : '{version}',
- default_options : ['warning_level=3'])
+ default_options : ['warning_level=3',
+ 'cpp_std=c++14'])
exe = executable('{exe_name}', '{source_name}',
install : true)