Spaces:
Running
Running
levanel commited on
Commit ·
5587ea9
1
Parent(s): 3cb9d60
updated cmake
Browse files- CMakeLists.txt +5 -0
CMakeLists.txt
CHANGED
|
@@ -40,6 +40,11 @@ add_library(vectordb STATIC
|
|
| 40 |
# PHASE 2: The Python Bridge (Pybind11)
|
| 41 |
# ==========================================
|
| 42 |
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
find_package(pybind11 CONFIG REQUIRED)
|
| 44 |
|
| 45 |
pybind11_add_module(vecmini src/bindings.cpp)
|
|
|
|
| 40 |
# PHASE 2: The Python Bridge (Pybind11)
|
| 41 |
# ==========================================
|
| 42 |
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
|
| 43 |
+
execute_process(
|
| 44 |
+
COMMAND python3 -m pybind11 --cmakedir
|
| 45 |
+
OUTPUT_VARIABLE pybind11_DIR
|
| 46 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
| 47 |
+
)
|
| 48 |
find_package(pybind11 CONFIG REQUIRED)
|
| 49 |
|
| 50 |
pybind11_add_module(vecmini src/bindings.cpp)
|