build: Fix the non-pkg-config Vulkan detection

Not all the variables were renamed.
This commit is contained in:
Emmanuele Bassi 2018-02-05 14:35:34 +00:00
parent a5363b9e5d
commit 00990ec307

View File

@ -568,7 +568,7 @@ else
vulkan_libname = 'vulkan'
endif
vulkan_dep = cc.find_library(vulkan_libname, required: false)
if vulkan_lib.found() and cc.has_function('vkCreateInstance', dependencies: vulkan_lib) and cc.has_header('vulkan/vulkan.h')
if vulkan_dep.found() and cc.has_function('vkCreateInstance', dependencies: vulkan_dep) and cc.has_header('vulkan/vulkan.h')
have_vulkan = true
pc_gdk_extra_libs += ['-l@0@'.format(vulkan_libname)]
endif