meson: only run c++ tests when c++ compiler is available (#6123)

This commit is contained in:
Davide Cavalca
2017-06-15 09:55:13 +01:00
committed by Lennart Poettering
parent 42d3bf86bb
commit ec36d052f7

View File

@@ -40,8 +40,12 @@ install_headers(
opts = [['c'],
['c', '-ansi'],
['c', '-std=iso9899:1990'],
['c++']]
['c', '-std=iso9899:1990']]
cxx = find_program('c++', required : false)
if cxx.found()
opts += [['c++']]
endif
foreach header : _systemd_headers
foreach opt : opts