Skip to content

Commit 2f87f7f

Browse files
fanc999-1kjellahl
authored andcommitted
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.
1 parent 3feecca commit 2f87f7f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

meson.build

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ benchmark_dep = dependency('boost', modules: ['system', 'timer'],
9292
version: '>=1.20.0', required: do_benchmark)
9393
can_benchmark = benchmark_dep.found()
9494

95-
if is_msvc
96-
# We must have Visual Studio 2017 15.7 or later...
97-
assert(cpp_compiler.version().split('.')[0].to_int() >= 19 and \
98-
cpp_compiler.version().split('.')[1].to_int() >= 15,
99-
'Visual Studio 2017 15.7 or later is required')
95+
# We must have Visual Studio 2015 or later...
96+
if is_msvc and cpp_compiler.version().version_compare('<19')
97+
error('Visual Studio 2015 or later is required')
10098
endif
10199

102100
# Some dependencies are required only in maintainer mode and/or

0 commit comments

Comments
 (0)