Skip to content

Commit c0d4843

Browse files
authored
build : fix llama.pc (ggml-org#11658)
Signed-off-by: Adrien Gallouët <[email protected]>
1 parent 8d4d2be commit c0d4843

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,4 @@ configure_file(cmake/llama.pc.in
233233
@ONLY)
234234

235235
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
236-
DESTINATION lib/pkgconfig)
236+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

cmake/llama.pc.in

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
exec_prefix=${prefix}
3-
libdir=${exec_prefix}/lib
4-
includedir=${prefix}/include
2+
exec_prefix=@CMAKE_INSTALL_PREFIX@
3+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
4+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
55

66
Name: llama
77
Description: Port of Facebook's LLaMA model in C/C++
8-
Version: @PROJECT_VERSION@
9-
Libs: -L${libdir} -lggml -lggml-base -lllama
8+
Version: @LLAMA_INSTALL_VERSION@
9+
Libs: -L${libdir} -lggml -lggml-base -lllama
1010
Cflags: -I${includedir}

0 commit comments

Comments
 (0)