Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Always add raft::raft_nn_lib and raft::raft_distance_lib aliases #727

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,12 @@ if(RAFT_COMPILE_DIST_LIBRARY)

endif()

if(TARGET raft_distance_lib AND (NOT TARGET raft::raft_distance_lib))
add_library(raft::raft_distance_lib ALIAS raft_distance_lib)
endif()

target_link_libraries(raft_distance INTERFACE
raft::raft
$<TARGET_NAME_IF_EXISTS:raft_distance_lib>
$<TARGET_NAME_IF_EXISTS:raft::raft_distance_lib>
)

Expand Down Expand Up @@ -341,9 +344,12 @@ if(RAFT_COMPILE_NN_LIBRARY)
INTERFACE "RAFT_NN_COMPILED")
endif()

if(TARGET raft_nn_lib AND (NOT TARGET raft::raft_nn_lib))
add_library(raft::raft_nn_lib ALIAS raft_nn_lib)
endif()

target_link_libraries(raft_nn INTERFACE
raft::raft
$<TARGET_NAME_IF_EXISTS:raft_nn_lib>
$<TARGET_NAME_IF_EXISTS:raft::raft_nn_lib>)

##############################################################################
Expand Down