mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
meson: fix build tests for c++14 and c++17
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
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
|
||||
|
||||
Reference in New Issue
Block a user