summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hull <peterhull90@gmail.com>2023-04-23 08:46:25 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2023-04-27 01:45:12 +0300
commit1fdcc30ae60f09f98f96765493e6a374c7ff9ee8 (patch)
treefc62632cc5f39847d1f7f4b6213a68f9a1b7e2a0
parent38b35eca3009a391d4f92b88ff09ab383c79c1f2 (diff)
downloadmeson-1fdcc30ae60f09f98f96765493e6a374c7ff9ee8.tar.gz
Specify c++ 11 flag as code uses c++ 11 features
-rw-r--r--test cases/common/178 bothlibraries/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/common/178 bothlibraries/meson.build b/test cases/common/178 bothlibraries/meson.build
index bb3a2bced..843a607a1 100644
--- a/test cases/common/178 bothlibraries/meson.build
+++ b/test cases/common/178 bothlibraries/meson.build
@@ -54,7 +54,8 @@ test('runtest-both-2', exe_both2)
# both_libraries the static has no sources and thus no compilers, resulting in
# the executable linking using the C compiler.
# https://github.com/Netflix/vmaf/issues/1107
-libccpp = both_libraries('ccpp', 'foo.cpp', 'libfile.c')
+libccpp = both_libraries('ccpp', 'foo.cpp', 'libfile.c',
+ cpp_args : ['-std=c++11'])
exe = executable('prog-ccpp', 'main2.c',
link_with: libccpp.get_static_lib(),
c_args : ['-DSTATIC_COMPILATION'],