Fix CMake
This commit is contained in:
parent
e750735216
commit
6d973a699f
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.8)
|
cmake_minimum_required(VERSION 3.8)
|
||||||
project("llama.cpp")
|
project("alpaca.cpp")
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED true)
|
set(CMAKE_CXX_STANDARD_REQUIRED true)
|
||||||
|
@ -104,8 +104,8 @@ endif()
|
||||||
# set(LLAMA_EXTRA_FLAGS ${LLAMA_EXTRA_FLAGS} -DGGML_PERF)
|
# set(LLAMA_EXTRA_FLAGS ${LLAMA_EXTRA_FLAGS} -DGGML_PERF)
|
||||||
# endif()
|
# endif()
|
||||||
|
|
||||||
add_executable(llama
|
add_executable(chat
|
||||||
main.cpp
|
chat.cpp
|
||||||
utils.cpp
|
utils.cpp
|
||||||
utils.h)
|
utils.h)
|
||||||
|
|
||||||
|
@ -119,10 +119,10 @@ add_library(ggml
|
||||||
ggml.h)
|
ggml.h)
|
||||||
|
|
||||||
target_compile_definitions(ggml PUBLIC ${LLAMA_EXTRA_FLAGS})
|
target_compile_definitions(ggml PUBLIC ${LLAMA_EXTRA_FLAGS})
|
||||||
target_compile_definitions(llama PUBLIC ${LLAMA_EXTRA_FLAGS})
|
target_compile_definitions(chat PUBLIC ${LLAMA_EXTRA_FLAGS})
|
||||||
target_compile_definitions(quantize PUBLIC ${LLAMA_EXTRA_FLAGS})
|
target_compile_definitions(quantize PUBLIC ${LLAMA_EXTRA_FLAGS})
|
||||||
|
|
||||||
target_link_libraries(ggml PRIVATE ${LLAMA_EXTRA_LIBS})
|
target_link_libraries(ggml PRIVATE ${LLAMA_EXTRA_LIBS})
|
||||||
target_include_directories(ggml PUBLIC .)
|
target_include_directories(ggml PUBLIC .)
|
||||||
target_link_libraries(quantize PRIVATE ggml)
|
target_link_libraries(quantize PRIVATE ggml)
|
||||||
target_link_libraries(llama PRIVATE ggml)
|
target_link_libraries(chat PRIVATE ggml)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue