From 3457b82140f1bccfdd2df80c3045f1dae3096293 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 9 Feb 2023 20:25:49 -0800 Subject: [PATCH] meson: add support for linux libc++fs Signed-off-by: Rosen Penev --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index dbae676b..18e3b01b 100644 --- a/meson.build +++ b/meson.build @@ -50,9 +50,8 @@ cdata.set('EXV_ENABLE_VIDEO', get_option('video')) deps = [] deps += cpp.find_library('ws2_32', required: host_machine.system() == 'windows') -# This makes assumptions that the libcpp is the GNU one on Linux systems if cpp.get_argument_syntax() == 'gcc' and cpp.version().version_compare('<9') - if host_machine.system() == 'linux' + if host_machine.system() == 'linux' and cpp.get_define('_LIBCPP_VERSION', prefix: '#include ') == '' deps += cpp.find_library('stdc++fs') elif cpp.get_id() == 'clang' deps += cpp.find_library('c++fs')