Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 540601a

Browse files
authored
Merge pull request #487 from janhq/481-reduce-redundant-build-steps
feat: Reduce redundant build steps
2 parents 03a5a4c + e48bd59 commit 540601a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.5)
2-
project(nitro CXX)
2+
project(nitro C CXX)
33

44
include(CheckIncludeFileCXX)
55

@@ -16,9 +16,6 @@ else()
1616
set(CMAKE_CXX_STANDARD 14)
1717
endif()
1818

19-
# llama cpp server need llava example to work, this is for llama cpp server
20-
set(LLAMA_BUILD_EXAMPLES ON)
21-
2219
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2320
set(CMAKE_CXX_EXTENSIONS OFF)
2421
set(OPENSSL_USE_STATIC_LIBS TRUE)
@@ -47,6 +44,7 @@ endif()
4744

4845
add_compile_definitions(NITRO_VERSION="${NITRO_VERSION}")
4946

47+
add_subdirectory(llama.cpp/examples/llava)
5048
add_subdirectory(llama.cpp)
5149
add_subdirectory(whisper.cpp)
5250

0 commit comments

Comments
 (0)