meson: fix build tests for c++14 and c++17

This commit is contained in:
Yu Watanabe 2020-11-14 03:09:23 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 88e574e7c1
commit a614a6e2f8
1 changed files with 2 additions and 2 deletions

View File

@ -58,10 +58,10 @@ if add_languages('cpp', required : false)
opts += [['c++'],
['c++', '-std=c++98'],
['c++', '-std=c++11']]
if cc.has_argument('-std=c++14')
if cxx.has_argument('-std=c++14')
opts += [['c++', '-std=c++14']]
endif
if cc.has_argument('-std=c++17')
if cxx.has_argument('-std=c++17')
opts += [['c++', '-std=c++17']]
endif
endif