Skip to content

Commit

Permalink
Build: Fix wrong lib naming for python
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkhan42 committed Aug 29, 2023
1 parent fe6ee14 commit 25198fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ if(LINUX)
add_library(ucall_server_uring src/engine_uring.cpp)
target_link_libraries(ucall_server_uring simdjson::simdjson Threads::Threads ${URING_LIBS} ${tls_LIBS})

set(BACKENDS ${BACKENDS} ucall_server_epoll ucall_server_uring)
set(BACKENDS ${BACKENDS} ucall_server_epoll ucall_server_uring)
endif()

foreach(backend IN LISTS BACKENDS)
Expand Down Expand Up @@ -274,8 +274,7 @@ foreach(backend IN LISTS BACKENDS)
set(py_lib_name "py_ucall_${backend_name}")
Python3_add_library(${py_lib_name} src/python.c)
target_include_directories(${py_lib_name} PUBLIC src/ include/)
target_link_libraries(${py_lib_name} PRIVATE ucall_server_uring base64)
set_target_properties(${py_lib_name} PROPERTIES OUTPUT_NAME uring)
target_compile_definitions(${py_lib_name} PRIVATE UCALL_PYTHON_MODULE_NAME=uring)

target_link_libraries(${py_lib_name} PRIVATE ${backend} base64)
set_target_properties(${py_lib_name} PROPERTIES OUTPUT_NAME ${backend_name})
target_compile_definitions(${py_lib_name} PRIVATE UCALL_PYTHON_MODULE_NAME=${backend_name})
endforeach()

0 comments on commit 25198fb

Please sign in to comment.