automatically detect where filesystem lives

This commit is contained in:
Lucas L. Treffenstädt
2018-11-02 23:15:42 +01:00
parent 236be90c2f
commit ebbdaa168c
2 changed files with 5 additions and 2 deletions

View File

@ -83,7 +83,11 @@ if dbusmenu_gtk.found()
)
endif
if get_option('filesystem-experimental')
test_fs = '''#include <filesystem>
int main(void){}'''
compiler = meson.get_compiler('cpp')
if not compiler.compiles(test_fs, name : 'is filesystem still in experimental?')
add_project_arguments('-DFILESYSTEM_EXPERIMENTAL', language: 'cpp')
endif