diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-12-24 16:15:09 +0800 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-12-24 10:46:51 +0100 |
commit | 2f87f7f246eb96d242bc2a574e55680a670c30b9 (patch) | |
tree | 2f46e15775bd0a5af94d2250ee67248f7cac5afa | |
parent | 3feecca2db601a65df305a3e9c5c8e25156cdc79 (diff) | |
download | sigc++-2f87f7f246eb96d242bc2a574e55680a670c30b9.tar.gz |
meson: Relax MSVC version requirement to 2015
libsigc++ requires a C++-11-compliant compiler, so we can just make the
build look for Visual Studio 2015 instead of Visual Studio 2017 15.7.
Visual Studio 2013 also works, but since it will spew out loads of
warnings and the latest C++-11 version of glibmm is not buildable with
Visual Studio 2013, let's just require Visual Studio 2015.
-rw-r--r-- | meson.build | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 548cce9..c288f63 100644 --- a/meson.build +++ b/meson.build @@ -92,11 +92,9 @@ benchmark_dep = dependency('boost', modules: ['system', 'timer'], version: '>=1.20.0', required: do_benchmark) can_benchmark = benchmark_dep.found() -if is_msvc - # We must have Visual Studio 2017 15.7 or later... - assert(cpp_compiler.version().split('.')[0].to_int() >= 19 and \ - cpp_compiler.version().split('.')[1].to_int() >= 15, - 'Visual Studio 2017 15.7 or later is required') +# We must have Visual Studio 2015 or later... +if is_msvc and cpp_compiler.version().version_compare('<19') + error('Visual Studio 2015 or later is required') endif # Some dependencies are required only in maintainer mode and/or |