Skip to content

Commit 2c3df16

Browse files
committed
Reorder
1 parent d123129 commit 2c3df16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ cmake_minimum_required(VERSION 3.4...3.22)
22

33
project(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

0 commit comments

Comments
 (0)