Skip to content

Commit

Permalink
just fetchcontent?
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Nov 22, 2024
1 parent a650a86 commit 2226ad9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)

include(FetchContent)
include(ExternalProject)


# sqlite amalgamation, for up-to-date headers and sqlite3 CLI
Expand All @@ -23,12 +24,12 @@ set(LLAMA_METAL OFF)
set(LLAMA_STATIC ON)
set(LLAMA_OPENMP OFF)

ExternalProject_Add(
"llama.cpp"
FetchContent_Declare(
llama_cpp
GIT_REPOSITORY [email protected]:ggerganov/llama.cpp.git
GIT_TAG b3091
)

FetchContent_MakeAvailable(llama_cpp)

# sqlite-lembed loadable
add_library(sqlite_lembed SHARED sqlite-lembed.c)
Expand Down

0 comments on commit 2226ad9

Please sign in to comment.