mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
clover: Add version.lib dependency for Clang on Windows
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7680>
This commit is contained in:
parent
72566fd92c
commit
959e017799
1 changed files with 9 additions and 1 deletions
|
|
@ -85,6 +85,14 @@ if not (dep_clang.found() and dep_clang_usable)
|
|||
endif
|
||||
endif
|
||||
|
||||
# Be explicit about only using this lib on Windows, to avoid picking
|
||||
# up random libs with the generic name 'libversion'
|
||||
if host_machine.system() == 'windows'
|
||||
dep_version = cpp.find_library('version')
|
||||
else
|
||||
dep_version = null_dep
|
||||
endif
|
||||
|
||||
libopencl = shared_library(
|
||||
opencl_libname,
|
||||
[],
|
||||
|
|
@ -94,7 +102,7 @@ libopencl = shared_library(
|
|||
link_with : [libpipe_loader_dynamic, libgallium],
|
||||
dependencies : [
|
||||
idep_mesautil,
|
||||
dep_clock, dep_dl, dep_unwind, dep_elf, dep_clang
|
||||
dep_clock, dep_dl, dep_unwind, dep_elf, dep_clang, dep_version
|
||||
],
|
||||
version : '@0@.0.0'.format(opencl_version),
|
||||
install : true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue