FIXED last commit for Unix system

This commit is contained in:
U-DELL-LAPTOP-VKI\nikol 2021-12-13 18:31:33 +03:00
parent fc06d42fc4
commit 69bcb00a47
1 changed files with 5 additions and 1 deletions

View File

@ -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
#===============================================================================