From 18dbe4b8af23765ccc2c824adc13202a25f0afb1 Mon Sep 17 00:00:00 2001 From: Markus Tavenrath Date: Fri, 26 Apr 2024 10:32:10 +0200 Subject: [PATCH] link direct storage to ggml_shared as well. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b3b7ea42..98ebcbd71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1206,6 +1206,8 @@ if (BUILD_SHARED_LIBS) set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON) add_library(ggml_shared SHARED $) target_link_libraries(ggml_shared PUBLIC Threads::Threads ${LLAMA_EXTRA_LIBS}) + target_link_libraries(ggml_shared PUBLIC "${LLAMA_DIRECT_STORAGE_DIR}/native/lib/x64/dstorage.lib" cuda cudart d3d12) + install(TARGETS ggml_shared LIBRARY) endif()