Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 61a1e5c

Browse filesBrowse files
committed
Add llava shared library target
1 parent 48f4228 commit 61a1e5c
Copy full SHA for 61a1e5c

File tree

Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,23 @@ if (LLAMA_BUILD)
4141
FILES $<TARGET_RUNTIME_DLLS:llama>
4242
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
4343
)
44+
add_subdirectory(vendor/llama.cpp/examples/llava)
45+
set_target_properties(llava_shared PROPERTIES OUTPUT_NAME "llava")
46+
install(
47+
TARGETS llava_shared
48+
LIBRARY DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
49+
RUNTIME DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
50+
ARCHIVE DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
51+
FRAMEWORK DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
52+
RESOURCE DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
53+
)
54+
# Temporary fix for https://github.com/scikit-build/scikit-build-core/issues/374
55+
install(
56+
TARGETS llava_shared
57+
LIBRARY DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
58+
RUNTIME DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
59+
ARCHIVE DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
60+
FRAMEWORK DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
61+
RESOURCE DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
62+
)
4463
endif()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.