From 69bcb00a475b100d4fc835e72a6f7031090eb690 Mon Sep 17 00:00:00 2001 From: "U-DELL-LAPTOP-VKI\\nikol" Date: Mon, 13 Dec 2021 18:31:33 +0300 Subject: [PATCH] FIXED last commit for Unix system --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 42d3c820..e9a7f5fc 100644 --- a/meson.build +++ b/meson.build @@ -53,7 +53,11 @@ if not get_option('source-only') pcre2_dep = dependency('libpcre2-8') freetype_dep = dependency('freetype2') sdl_dep = dependency('sdl2', method: 'config-tool') - win_dep = cc.find_library('dwmapi', required : true) + if host_machine.system() == 'windows' + win_dep = cc.find_library('dwmapi', required : true) + elif + win_dep = cc.find_library('dwmapi', required : false) + endif lite_deps = [lua_dep, sdl_dep, freetype_dep, pcre2_dep, libm, libdl, threads_dep, win_dep] endif #===============================================================================