We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 816dd2a + 2759390 commit f2c5744Copy full SHA for f2c5744
1 file changed
llamacpp/native/CMakeLists.txt
@@ -26,6 +26,15 @@ if (DDLLAMA_BUILD_SERVER)
26
endif()
27
add_subdirectory(vendor/llama.cpp)
28
29
+ # Ensure shared library DLLs are installed on Windows.
30
+ # Upstream install rules use LIBRARY which doesn't install RUNTIME (DLL) artifacts on DLL platforms.
31
+ if (BUILD_SHARED_LIBS)
32
+ install(TARGETS llama RUNTIME DESTINATION bin)
33
+ if (TARGET llama-common)
34
+ install(TARGETS llama-common RUNTIME DESTINATION bin)
35
+ endif()
36
37
+
38
# Create custom target to copy llama-server to com.docker.llama-server
39
if (WIN32)
40
set(LLAMA_SERVER_DST "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/com.docker.llama-server.exe")
0 commit comments