Skip to content

Commit 2c5ea37

Browse files
committed
fix: pybind version
1 parent ef17a76 commit 2c5ea37

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
include(FetchContent)
44

@@ -14,20 +14,18 @@ FetchContent_MakeAvailable(sentencepiece)
1414
FetchContent_Declare(gemma GIT_REPOSITORY https://github.com/google/gemma.cpp GIT_TAG origin/main)
1515
FetchContent_MakeAvailable(gemma)
1616

17-
1817
FetchContent_Declare(highway GIT_REPOSITORY https://github.com/google/highway.git GIT_TAG da250571a45826b21eebbddc1e50d0c1137dee5f)
1918
FetchContent_MakeAvailable(highway)
2019

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)
2322

2423
# Create the Python module
2524
pybind11_add_module(pygemma src/gemma_binding.cpp)
2625

2726
target_link_libraries(pygemma PRIVATE libgemma hwy hwy_contrib sentencepiece)
2827

2928
# Link against libgemma.a and any other necessary libraries
30-
# After linking, try to include the directories. Adjust this if necessary.
3129
FetchContent_GetProperties(gemma)
3230
FetchContent_GetProperties(sentencepiece)
3331
target_include_directories(pygemma PRIVATE ${gemma_SOURCE_DIR})

0 commit comments

Comments
 (0)