From 723955cd2b562d4ffe0c9b4f8e524b110ec6f374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sat, 4 Mar 2017 08:42:32 +0100 Subject: [PATCH] FindVulkan: Fix for SDK versions < 1.0.42 on 32-bit Windows Before Vulkan 1.0.42, the SDK would add the Bin directory to `PATH`, which was confusing the 32-bit search on Windows. Avoid such confusion by ignoring the `PATH` when looking for the 32-bit version. Vulkan 1.0.42 fixed the whole problem by moving the libraries into Lib, Lib32, so this is strictly a compatibility fix for old SDKs. --- Modules/FindVulkan.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake index 0be9f97542..1f4c8ade9e 100644 --- a/Modules/FindVulkan.cmake +++ b/Modules/FindVulkan.cmake @@ -48,6 +48,7 @@ if(WIN32) PATHS "$ENV{VULKAN_SDK}/Lib32" "$ENV{VULKAN_SDK}/Bin32" + NO_SYSTEM_ENVIRONMENT_PATH ) endif() else()