Skip to content

Commit abd15a1

Browse files
committed
fixed pybind
1 parent 600db58 commit abd15a1

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

mooncake-transfer-engine/src/transport/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
file(GLOB XPORT_SOURCES "*.cpp" "coro_rpc_connector/*.cpp")
1+
file(GLOB XPORT_SOURCES "*.cpp")
22

33
# Find Python - pybind11 is already configured at the root level
44
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
55

66
add_subdirectory(rdma_transport)
7+
add_subdirectory(coro_rpc_connector)
78

8-
add_library(transport OBJECT ${XPORT_SOURCES} $<TARGET_OBJECTS:rdma_transport>)
9+
add_library(transport OBJECT ${XPORT_SOURCES} $<TARGET_OBJECTS:rdma_transport> $<TARGET_OBJECTS:coro_rpc_connector>)
910
target_link_libraries(transport PRIVATE JsonCpp::JsonCpp yalantinglibs::yalantinglibs glog::glog pthread ${Python3_LIBRARIES})
1011
target_include_directories(transport PRIVATE ${Python3_INCLUDE_DIRS})
1112

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
file(GLOB CORO_RPC_SOURCES "*.cpp")
2+
3+
# Find Python for pybind11 support
4+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
5+
6+
add_library(coro_rpc_connector OBJECT ${CORO_RPC_SOURCES})
7+
8+
target_link_libraries(coro_rpc_connector
9+
PRIVATE
10+
JsonCpp::JsonCpp
11+
yalantinglibs::yalantinglibs
12+
glog::glog
13+
pthread
14+
${Python3_LIBRARIES}
15+
)
16+
17+
target_include_directories(coro_rpc_connector
18+
PRIVATE
19+
${Python3_INCLUDE_DIRS}
20+
)
21+
22+
# Add pybind11 headers if available
23+
if(TARGET pybind11::headers)
24+
target_link_libraries(coro_rpc_connector PRIVATE pybind11::headers)
25+
endif()

0 commit comments

Comments
 (0)