mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 11:40:17 +00:00
rename {main->llama}-cmake-pkg binary
This commit is contained in:
parent
78bca8cb07
commit
10650b692d
@ -1,12 +1,12 @@
|
|||||||
cmake_minimum_required(VERSION 3.12)
|
cmake_minimum_required(VERSION 3.12)
|
||||||
project("main-cmake-pkg" C CXX)
|
project("llama-cmake-pkg" C CXX)
|
||||||
set(TARGET main-cmake-pkg)
|
set(TARGET llama-cmake-pkg)
|
||||||
|
|
||||||
find_package(Llama 0.0.1 REQUIRED)
|
find_package(Llama 0.0.1 REQUIRED)
|
||||||
|
|
||||||
# Bake common functionality in with target. Because applications
|
# Bake common functionality in with target. Because applications
|
||||||
# using the relocatable Llama package should be outside of the
|
# using the relocatable Llama package should be outside of the
|
||||||
# source tree, main-cmake-pkg pretends the dependencies are built-in.
|
# source tree, llama-cmake-pkg pretends the dependencies are built-in.
|
||||||
set(_common_path "${CMAKE_CURRENT_LIST_DIR}/../../common")
|
set(_common_path "${CMAKE_CURRENT_LIST_DIR}/../../common")
|
||||||
add_library(common OBJECT)
|
add_library(common OBJECT)
|
||||||
file(GLOB _common_files
|
file(GLOB _common_files
|
||||||
@ -15,7 +15,7 @@ file(GLOB _common_files
|
|||||||
)
|
)
|
||||||
target_sources(common PRIVATE ${_common_files})
|
target_sources(common PRIVATE ${_common_files})
|
||||||
|
|
||||||
# If the common project was part of "main-cmake-pkg" the transient
|
# If the common project was part of "llama-cmake-pkg" the transient
|
||||||
# defines would automatically be attached. Because the common func-
|
# defines would automatically be attached. Because the common func-
|
||||||
# tionality is separate, but dependent upon the defines, it must be
|
# tionality is separate, but dependent upon the defines, it must be
|
||||||
# explicitly extracted from the "llama" target.
|
# explicitly extracted from the "llama" target.
|
||||||
|
@ -20,7 +20,7 @@ cmake --build build --config Release
|
|||||||
cmake --install build --prefix C:/LlamaCPP
|
cmake --install build --prefix C:/LlamaCPP
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build main-cmake-pkg
|
### Build llama-cmake-pkg
|
||||||
|
|
||||||
|
|
||||||
```cmd
|
```cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user