From 06378884603f5b229fec0f501d514fe1350c94c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20L=2E=20Treffenst=C3=A4dt?= Date: Sat, 3 Nov 2018 12:44:15 +0100 Subject: [PATCH] even simpler check --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 547714e..713ecd2 100644 --- a/meson.build +++ b/meson.build @@ -83,11 +83,9 @@ if dbusmenu_gtk.found() ) endif -test_fs = '''#include -int main(void){}''' compiler = meson.get_compiler('cpp') -if not compiler.compiles(test_fs, name : 'is filesystem still in experimental?') +if not compiler.has_header('filesystem') add_project_arguments('-DFILESYSTEM_EXPERIMENTAL', language: 'cpp') endif