mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 03:52:35 -04:00
Try to link with uuid only if xapian is present.
This commit is contained in:
parent
799a47142b
commit
643293c7df
@ -19,7 +19,12 @@ if meson.is_cross_build() and host_machine.system() == 'windows'
|
|||||||
# xapian doesn't use uuid on windows.
|
# xapian doesn't use uuid on windows.
|
||||||
uuid_dep = declare_dependency()
|
uuid_dep = declare_dependency()
|
||||||
else
|
else
|
||||||
uuid_dep = declare_dependency(link_args:['-luuid', '-lrt'])
|
xapian_dep = dependency('xapian-core', required : false)
|
||||||
|
if xapian_dep.found()
|
||||||
|
uuid_dep = declare_dependency(link_args:['-luuid', '-lrt'])
|
||||||
|
else
|
||||||
|
uuid_dep = declare_dependency()
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all_deps = [thread_dep, kiwixlib_dep, microhttpd_dep, z_dep, uuid_dep]
|
all_deps = [thread_dep, kiwixlib_dep, microhttpd_dep, z_dep, uuid_dep]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user