mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
meson: fix build tests for c++14 and c++17
This commit is contained in:
parent
88e574e7c1
commit
a614a6e2f8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue