File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ cmake_minimum_required(VERSION 3.4...3.22)
22
33project (llama_cpp)
44
5- option (BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON )
5+ option (LLAMA_BUILD "Build llama.cpp shared library and install alongside python package" ON )
66
77
8- if (BUILD_LLAMA_CPP )
8+ if (LLAMA_BUILD )
99 set (BUILD_SHARED_LIBS "On" )
10- add_subdirectory (vendor/llama.cpp)
1110 if (APPLE )
1211 set (LLAMA_AVX OFF )
1312 set (LLAMA_AVX2 OFF )
@@ -16,6 +15,7 @@ if (BUILD_LLAMA_CPP)
1615 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native" )
1716 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native" )
1817 endif ()
18+ add_subdirectory (vendor/llama.cpp)
1919 install (
2020 TARGETS llama
2121 LIBRARY DESTINATION ${SKBUILD_PLATLIB_DIR} /llama_cpp
You can’t perform that action at this time.
0 commit comments