File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.11 ) # or whatever minimum version you require
1
+ cmake_minimum_required (VERSION 3.11 ) # or whatever minimum version you require
2
2
3
3
include (FetchContent )
4
4
@@ -14,20 +14,18 @@ FetchContent_MakeAvailable(sentencepiece)
14
14
FetchContent_Declare (gemma GIT_REPOSITORY https://github.com/google/gemma.cpp GIT_TAG origin/main )
15
15
FetchContent_MakeAvailable (gemma )
16
16
17
-
18
17
FetchContent_Declare (highway GIT_REPOSITORY https://github.com/google/highway.git GIT_TAG da250571a45826b21eebbddc1e50d0c1137dee5f )
19
18
FetchContent_MakeAvailable (highway )
20
19
21
- add_subdirectory ( vendor/ pybind11 )
22
- # add_subdirectory(vendor/gemma.cpp )
20
+ FetchContent_Declare ( pybind11 GIT_REPOSITORY https://github.com/pybind/ pybind11.git GIT_TAG v2.10.4 )
21
+ FetchContent_MakeAvailable ( pybind11 )
23
22
24
23
# Create the Python module
25
24
pybind11_add_module (pygemma src/gemma_binding.cpp )
26
25
27
26
target_link_libraries (pygemma PRIVATE libgemma hwy hwy_contrib sentencepiece )
28
27
29
28
# Link against libgemma.a and any other necessary libraries
30
- # After linking, try to include the directories. Adjust this if necessary.
31
29
FetchContent_GetProperties (gemma )
32
30
FetchContent_GetProperties (sentencepiece )
33
31
target_include_directories (pygemma PRIVATE ${gemma_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments