Skip to content

Commit 17f341b

Browse files
committed
ggml-vulkan/CMakeLists: add a check for SPIRV-Headers
This is installed by the project if it is built and installed. Receiving an error during the configuration step is generally preferred to receiving an error in the middle of a build.
1 parent cfe9838 commit 17f341b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ggml/src/ggml-vulkan/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ endif()
88

99
find_package(Vulkan COMPONENTS glslc REQUIRED)
1010

11+
find_package(SPIRV-Headers REQUIRED)
12+
1113
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
1214
# Parallel build object files
1315
add_definitions(/MP)

0 commit comments

Comments
 (0)