diff options
author | Brad Davis <bdavis@saintandreas.org> | 2017-03-01 22:56:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-02 15:02:20 (GMT) |
commit | 8e58f360f53eab991debe507c669595cec7f07fa (patch) | |
tree | 5778eca413c65fbdae9c6bb69a5d53c8d6b5929c /Modules/FindVulkan.cmake | |
parent | 6cbad490c2fdbd9bdc67b406b9f2dcdc21e08ddb (diff) | |
download | CMake-8e58f360f53eab991debe507c669595cec7f07fa.zip CMake-8e58f360f53eab991debe507c669595cec7f07fa.tar.gz CMake-8e58f360f53eab991debe507c669595cec7f07fa.tar.bz2 |
FindVulkan: Update for LunarG SDK import library location on Windows
As of at least 1.0.42 of the LunarG SDK, the `vulkan-1.lib` import
library on Windows is stored in `${VULKAN_SDK}/Lib` or
`${VULKAN_SDK}/Lib32`.
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r-- | Modules/FindVulkan.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake index 820e0eb..0be9f97 100644 --- a/Modules/FindVulkan.cmake +++ b/Modules/FindVulkan.cmake @@ -39,12 +39,16 @@ if(WIN32) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS - "$ENV{VULKAN_SDK}/Bin") + "$ENV{VULKAN_SDK}/Lib" + "$ENV{VULKAN_SDK}/Bin" + ) elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS - "$ENV{VULKAN_SDK}/Bin32") + "$ENV{VULKAN_SDK}/Lib32" + "$ENV{VULKAN_SDK}/Bin32" + ) endif() else() find_path(Vulkan_INCLUDE_DIR |