Skip to content

Commit

Permalink
fix lci-ucx: link to pthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Jan 18, 2024
1 parent af7840c commit ba79f70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dependency/ucx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ file(GLOB_RECURSE lci-ucx_SRC CONFIGURE_DEPENDS "*.h" "*.c")

add_library(lci-ucx SHARED ${lci-ucx_SRC} lci_ucx_api.c)
set_target_properties(lci-ucx PROPERTIES C_VISIBILITY_PRESET hidden)
target_link_libraries(lci-ucx rt)
target_link_libraries(lci-ucx m)
find_package(Threads REQUIRED)
target_link_libraries(lci-ucx PRIVATE Threads::Threads)
target_link_libraries(lci-ucx PRIVATE rt)
target_link_libraries(lci-ucx PRIVATE m)
target_include_directories(lci-ucx PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR})
target_compile_definitions(lci-ucx PRIVATE _GNU_SOURCE=1)
Expand Down

0 comments on commit ba79f70

Please sign in to comment.