Skip to content

Commit

Permalink
added vulkan include directory
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Feb 16, 2024
1 parent c18be15 commit ce8365c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ if (LLAMA_VULKAN)
# add_library(ggml-vulkan STATIC ggml-vulkan.cpp ggml-vulkan.h)
# target_link_libraries(ggml-vulkan PRIVATE vulkan)

# target_include_directories(ggml-vulkan PRIVATE ${VULKAN_PATH}/include)

add_library(ggml-vulkan OBJECT ggml-vulkan.cpp ggml-vulkan.h)
if (BUILD_SHARED_LIBS)
set_target_properties(ggml-vulkan PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
target_link_libraries(ggml-vulkan PRIVATE Vulkan::Vulkan)

target_include_directories(ggml-vulkan PRIVATE ${VULKAN_PATH}/include)

add_compile_definitions(GGML_USE_VULKAN)

if (LLAMA_VULKAN_CHECK_RESULTS)
Expand Down

0 comments on commit ce8365c

Please sign in to comment.