diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-01-06 11:58:50 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-01-08 09:54:46 -0800 |
| commit | 5c209e196683289319535ada713759b6f4244ef6 (patch) | |
| tree | ddbdbd1936b6369bf5b1dab543760479ffa3dd47 /mesonbuild/templates/cpptemplates.py | |
| parent | fbe5655707a945d5b0ebf3c5d29d91fffd91a7d6 (diff) | |
| download | meson-5c209e196683289319535ada713759b6f4244ef6.tar.gz | |
templates: Add a Meson version
Without a version certain kinds of warnings will be suppressed, which is
bad.
I've picked 1.0 because it's pretty old, except for Rust where I've
maintained the 1.3.0 requirement
Diffstat (limited to 'mesonbuild/templates/cpptemplates.py')
| -rw-r--r-- | mesonbuild/templates/cpptemplates.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/templates/cpptemplates.py b/mesonbuild/templates/cpptemplates.py index 1975a76f0..f21729982 100644 --- a/mesonbuild/templates/cpptemplates.py +++ b/mesonbuild/templates/cpptemplates.py @@ -23,6 +23,7 @@ int main(int argc, char **argv) {{ hello_cpp_meson_template = '''project('{project_name}', 'cpp', version : '{version}', + meson_version : '>= {meson_version}', default_options : ['warning_level=3', 'cpp_std=c++14']) @@ -95,6 +96,7 @@ int main(int argc, char **argv) {{ lib_cpp_meson_template = '''project('{project_name}', 'cpp', version : '{version}', + meson_version : '>= {meson_version}', default_options : ['warning_level=3', 'cpp_std=c++14']) # These arguments are only used to build the shared library |
