Skip to content

Commit 37d0cb6

Browse files
committed
fix: Remove unnecessary Vulkan library linkage in CMakeLists.txt
Since `vulkan-shader-gen.cpp` only requires the `glslc` executable and not the Vulkan headers or libraries, CMakeLists.txt needs to be corrected. (See: ecc93d0)
1 parent efe4b14 commit 37d0cb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
find_package (Threads REQUIRED)
2-
find_package(Vulkan COMPONENTS glslc REQUIRED)
2+
find_program(GLSLC_EXECUTABLE glslc)
3+
if(NOT GLSLC_EXECUTABLE)
4+
message(FATAL_ERROR "glslc not found.")
5+
endif()
36

47
set(TARGET vulkan-shaders-gen)
58
add_executable(${TARGET} vulkan-shaders-gen.cpp)
69
install(TARGETS ${TARGET} RUNTIME)
710
target_compile_features(${TARGET} PRIVATE cxx_std_17)
811
target_link_libraries(vulkan-shaders-gen PUBLIC Threads::Threads)
9-
target_link_libraries(vulkan-shaders-gen PRIVATE Vulkan::Vulkan)

ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#include <fcntl.h>
3131
#endif
3232

33-
#include <vulkan/vulkan_core.h>
34-
3533
#define ASYNCIO_CONCURRENCY 64
3634

3735
std::mutex lock;

0 commit comments

Comments
 (0)