cmake : add pkg-config spec file for llama.cpp (#7702)

This commit is contained in:
Andy Tai
2024-06-03 01:06:24 -07:00
committed by GitHub
parent 6f28a333c1
commit a10cda58d3
2 changed files with 17 additions and 0 deletions

View File

@ -1373,6 +1373,13 @@ if (LLAMA_METAL)
endif()
endif()
configure_file(cmake/llama.pc.in
"${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
@ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
DESTINATION lib/pkgconfig)
#
# programs, examples and tests
#