Skip to content

Commit

Permalink
Use ggml as a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
saharNooby committed Apr 17, 2023
1 parent a96ec01 commit b2bdeb1
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 12,422 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ggml"]
path = ggml
url = https://github.com/saharNooby/ggml
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,8 @@ endif()
# Build libraries
#

add_library(ggml OBJECT
ggml.c
ggml.h)
add_subdirectory(ggml)

target_include_directories(ggml PUBLIC .)
target_compile_features(ggml PUBLIC c_std_11) # don't bump
target_link_libraries(ggml PRIVATE Threads::Threads ${RWKV_EXTRA_LIBS})
if (BUILD_SHARED_LIBS)
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
Expand Down
1 change: 1 addition & 0 deletions ggml
Submodule ggml added at bcf387

0 comments on commit b2bdeb1

Please sign in to comment.