File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments