Skip to content

Commit 64ae5d0

Browse files
jeffbolznvsrossitto79
authored andcommitted
vulkan: fix windows find_package of SPIRV-Headers (ggml-org#23215)
* vulkan: fix windows find_package of SPIRV-Headers * not windows-only
1 parent e16af37 commit 64ae5d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ggml/src/ggml-vulkan/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ endif()
88

99
find_package(Vulkan COMPONENTS glslc REQUIRED)
1010

11-
find_package(SPIRV-Headers REQUIRED)
11+
if (DEFINED ENV{VULKAN_SDK})
12+
list(APPEND CMAKE_PREFIX_PATH "$ENV{VULKAN_SDK}")
13+
endif()
14+
find_package(SPIRV-Headers CONFIG REQUIRED)
1215

1316
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
1417
# Parallel build object files

0 commit comments

Comments
 (0)