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 951e39c

Browse filesBrowse files
committed
Merge branch 'main' of https://github.com/abetlen/llama-cpp-python into main
2 parents c3ef41b + ae5682f commit 951e39c
Copy full SHA for 951e39c

File tree

Expand file treeCollapse file tree

1 file changed

+10
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-8
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+10-8Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ if (LLAMA_BUILD)
4141
RESOURCE DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
4242
)
4343
# Workaround for Windows + CUDA https://github.com/abetlen/llama-cpp-python/issues/563
44-
install(
45-
FILES $<TARGET_RUNTIME_DLLS:llama>
46-
DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
47-
)
48-
install(
49-
FILES $<TARGET_RUNTIME_DLLS:llama>
50-
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
51-
)
44+
if (WIN32 AND (LLAMA_CUDA OR LLAMA_CUBLAS))
45+
install(
46+
FILES $<TARGET_RUNTIME_DLLS:llama>
47+
DESTINATION ${SKBUILD_PLATLIB_DIR}/llama_cpp
48+
)
49+
install(
50+
FILES $<TARGET_RUNTIME_DLLS:llama>
51+
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/llama_cpp
52+
)
53+
endif()
5254

5355
if (LLAVA_BUILD)
5456
if (LLAMA_CUBLAS OR LLAMA_CUDA)

0 commit comments

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