Skip to content

Commit

Permalink
FIX libcuvs_c linked libraries for wheel static build
Browse files Browse the repository at this point in the history
  • Loading branch information
dantegd committed Mar 3, 2024
1 parent f504af3 commit 3f08f1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,13 @@ if(BUILD_C_LIBRARY)
INTERFACE "$<INSTALL_INTERFACE:include>"
)

target_link_libraries(cuvs_c PUBLIC cuvs::cuvs)
target_link_libraries(cuvs_c
PUBLIC
cuvs::cuvs
PRIVATE
$<$<BOOL:${CUDA_STATIC_RUNTIME}>:raft::raft>
$<$<BOOL:${CUDA_STATIC_RUNTIME}>:raft::compiled>
)

# ensure CUDA symbols aren't relocated to the middle of the debug build binaries
target_link_options(cuvs_c PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/fatbin.ld")
Expand Down

0 comments on commit 3f08f1e

Please sign in to comment.