Fix wrong usage of extra_link_args variable.

This commit is contained in:
Matthieu Gautier
2024-06-03 14:19:33 +02:00
parent a1ce3d10b1
commit 01b94418eb
2 changed files with 8 additions and 5 deletions

View File

@@ -48,12 +48,15 @@ if host_machine.system() == 'windows' and static_deps
endif
if host_machine.system() == 'windows'
add_project_arguments('-DNOMINMAX', language: 'cpp')
extra_libs += ['-liphlpapi']
else
extra_link_args = []
add_project_arguments('-DNOMINMAX', language: 'cpp')
extra_libs += ['-liphlpapi']
endif
if build_machine.system() == 'windows'
extra_libs += ['-lshlwapi', '-lwinmm']
endif
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep, zlib_dep, xapian_dep]
inc = include_directories('include', extra_include)