even simpler check

This commit is contained in:
Lucas L. Treffenstädt 2018-11-03 12:44:15 +01:00
parent ebbdaa168c
commit 0637888460

View File

@ -83,11 +83,9 @@ if dbusmenu_gtk.found()
)
endif
test_fs = '''#include <filesystem>
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