Skip to content

cmake : add install step for libllama and llama.h #1124

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -338,6 +338,10 @@ if (GGML_CUDA_SOURCES)
set_property(TARGET llama PROPERTY CUDA_ARCHITECTURES OFF)
endif()

# Install step is convenient for dependent CMake projects.
set_target_properties(llama PROPERTIES PUBLIC_HEADER "llama.h")
install(TARGETS llama)


#
# programs, examples and tests