summaryrefslogtreecommitdiffstats
path: root/Modules/FindVulkan.cmake
diff options
context:
space:
mode:
authorpheonix xx <dev@creatingtrouble.com>2020-04-26 03:58:50 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-28 11:25:55 (GMT)
commit5c40e5ddb46ea59aaa0fbd33d9c28d1c9b69dc62 (patch)
tree280f06d531368dfc3a746373d23effc57154b1f9 /Modules/FindVulkan.cmake
parenta4071b53da1d1356f98685e2065bd3d8904d4930 (diff)
downloadCMake-5c40e5ddb46ea59aaa0fbd33d9c28d1c9b69dc62.zip
CMake-5c40e5ddb46ea59aaa0fbd33d9c28d1c9b69dc62.tar.gz
CMake-5c40e5ddb46ea59aaa0fbd33d9c28d1c9b69dc62.tar.bz2
FindVulkan: Prefer VULKAN_SDK env var before standard paths
Reference the environment variable as HINTS instead of PATHS. Fixes: #20637
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r--Modules/FindVulkan.cmake11
1 files changed, 5 insertions, 6 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 55da55f..7603124 100644
--- a/Modules/FindVulkan.cmake
+++ b/Modules/FindVulkan.cmake
@@ -33,25 +33,24 @@ The module will also define two cache variables::
if(WIN32)
find_path(Vulkan_INCLUDE_DIR
NAMES vulkan/vulkan.h
- PATHS
+ HINTS
"$ENV{VULKAN_SDK}/Include"
)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
find_library(Vulkan_LIBRARY
NAMES vulkan-1
- PATHS
+ HINTS
"$ENV{VULKAN_SDK}/Lib"
"$ENV{VULKAN_SDK}/Bin"
- )
+ )
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
find_library(Vulkan_LIBRARY
NAMES vulkan-1
- PATHS
+ HINTS
"$ENV{VULKAN_SDK}/Lib32"
"$ENV{VULKAN_SDK}/Bin32"
- NO_SYSTEM_ENVIRONMENT_PATH
- )
+ )
endif()
else()
find_path(Vulkan_INCLUDE_DIR