Specify c++ 11 flag as code uses c++ 11 features
This commit is contained in:
parent
38b35eca30
commit
1fdcc30ae6
|
@ -54,7 +54,8 @@ test('runtest-both-2', exe_both2)
|
||||||
# both_libraries the static has no sources and thus no compilers, resulting in
|
# both_libraries the static has no sources and thus no compilers, resulting in
|
||||||
# the executable linking using the C compiler.
|
# the executable linking using the C compiler.
|
||||||
# https://github.com/Netflix/vmaf/issues/1107
|
# 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',
|
exe = executable('prog-ccpp', 'main2.c',
|
||||||
link_with: libccpp.get_static_lib(),
|
link_with: libccpp.get_static_lib(),
|
||||||
c_args : ['-DSTATIC_COMPILATION'],
|
c_args : ['-DSTATIC_COMPILATION'],
|
||||||
|
|
Loading…
Reference in New Issue