cmake: Skip MSVC like compilers, since C++11 is not supported

This commit is contained in:
Daniel Mensinger 2020-06-01 12:25:05 +02:00
parent ede2cd556c
commit 0e98a7679a
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
project('cmake_set_opt', ['c', 'cpp'])
comp = meson.get_compiler('cpp')
if comp.get_argument_syntax() == 'msvc'
error('MESON_SKIP_TEST: MSVC is not supported because it does not support C++11')
endif
cm = import('cmake')
opts = cm.subproject_options()