diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-08 16:29:01 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-08-11 21:54:16 +0300 |
| commit | 0b97d585480e973d8b149618901f7a4ddfa1a906 (patch) | |
| tree | 6d7641e277f9c7570a377635c1b5312f58aa535e /test cases/windows/3 cpp | |
| parent | 042adba204adeb8599e6ce516e0615f9a7b1f9c0 (diff) | |
| download | meson-0b97d585480e973d8b149618901f7a4ddfa1a906.tar.gz | |
compilers/c++: Add MSVC option to make the __cplusplus define accurate
Otherwise it always returns the value for c++98, starting with MSVC 2017
15.7 or later. Earlier versions are not affected by this mis-feature
Diffstat (limited to 'test cases/windows/3 cpp')
| -rw-r--r-- | test cases/windows/3 cpp/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/windows/3 cpp/meson.build b/test cases/windows/3 cpp/meson.build index 7b8080e54..a9e6569aa 100644 --- a/test cases/windows/3 cpp/meson.build +++ b/test cases/windows/3 cpp/meson.build @@ -1,4 +1,4 @@ -project('wincpp', 'cpp') +project('wincpp', 'cpp', default_options : ['cpp_std=c++14']) exe = executable('prog', 'prog.cpp') test('wincpp', exe) |
