[cmake] update vulkan rules (#5777)
authorBing Xu <antinucleon@gmail.com>
Fri, 12 Jun 2020 15:35:03 +0000 (08:35 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 15:35:03 +0000 (08:35 -0700)
cmake/util/FindVulkan.cmake

index 850b99c..9d9a973 100644 (file)
@@ -62,7 +62,7 @@ macro(find_vulkan use_vulkan)
   if(Vulkan_FOUND)
     get_filename_component(VULKAN_LIBRARY_PATH ${Vulkan_LIBRARY} DIRECTORY)
     find_library(Vulkan_SPIRV_TOOLS_LIBRARY SPIRV-Tools
-        HINTS ${VULKAN_LIBRARY_PATH} ${VULKAN_LIBRARY_PATH}/spirv-tools)
+        HINTS ${VULKAN_LIBRARY_PATH} ${VULKAN_LIBRARY_PATH}/spirv-tools ${VULKAN_SDK}/lib)
 
     find_path(_libspirv libspirv.h HINTS ${Vulkan_INCLUDE_DIRS} PATH_SUFFIXES vulkan spirv-tools)
     find_path(_spirv spirv.hpp HINTS ${Vulkan_INCLUDE_DIRS} PATH_SUFFIXES vulkan SPIRV spirv/unified1)