summaryrefslogtreecommitdiffstats
path: root/Modules/FindVulkan.cmake
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2017-03-04 07:42:32 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-06 18:32:41 (GMT)
commit723955cd2b562d4ffe0c9b4f8e524b110ec6f374 (patch)
treecf41ecdb008205af32096099b000b2d61e2fa7fc /Modules/FindVulkan.cmake
parent8e58f360f53eab991debe507c669595cec7f07fa (diff)
downloadCMake-723955cd2b562d4ffe0c9b4f8e524b110ec6f374.zip
CMake-723955cd2b562d4ffe0c9b4f8e524b110ec6f374.tar.gz
CMake-723955cd2b562d4ffe0c9b4f8e524b110ec6f374.tar.bz2
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.
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r--Modules/FindVulkan.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 0be9f97..1f4c8ad 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()