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:
Víctor Manuel Jáquez Leal 2024-12-16 17:58:20 +01:00 committed by Eli Schwartz
parent 16cf71f051
commit bcb605201a
1 changed files with 1 additions and 1 deletions

View File

@ -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: