dependencies: support old vulkan SDK version
In old versions of Vulkan SDK, VK_SDK_PATH environment variable was used instead of VULKAN_SDK. This patch check both environment variables is fallback mode.
This commit is contained in:
parent
16cf71f051
commit
bcb605201a
|
@ -189,7 +189,7 @@ class VulkanDependencySystem(SystemDependency):
|
|||
super().__init__(name, environment, kwargs, language=language)
|
||||
|
||||
try:
|
||||
self.vulkan_sdk = os.environ['VULKAN_SDK']
|
||||
self.vulkan_sdk = os.environ.get('VULKAN_SDK', os.environ['VK_SDK_PATH'])
|
||||
if not os.path.isabs(self.vulkan_sdk):
|
||||
raise DependencyException('VULKAN_SDK must be an absolute path.')
|
||||
except KeyError:
|
||||
|
|
Loading…
Reference in New Issue