]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: only run c++ tests when c++ compiler is available (#6123)
authorDavide Cavalca <davide125@tiscali.it>
Thu, 15 Jun 2017 08:55:13 +0000 (09:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Jun 2017 08:55:13 +0000 (10:55 +0200)
src/systemd/meson.build

index 75435acb147b265d30a62d88e341209af81776d7..debbd46dff5db987ed815c045875931c4e42d3cf 100644 (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