Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
viclafargue committed Oct 3, 2024
1 parent c2c810c commit 4e7398a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,6 @@ add_library(
${CUVS_MG_ALGOS}
)

if(BUILD_MG_ALGOS)
target_compile_definitions(cuvs PUBLIC CUVS_BUILD_MG_ALGOS)
endif()

set_target_properties(
cuvs_objs
PROPERTIES CXX_STANDARD 17
Expand Down Expand Up @@ -574,6 +570,11 @@ if(NOT BUILD_CPU_ONLY)
)
endif()

if(BUILD_MG_ALGOS)
target_compile_definitions(cuvs PUBLIC CUVS_BUILD_MG_ALGOS)
target_compile_definitions(cuvs_objs PUBLIC CUVS_BUILD_MG_ALGOS)
endif()

if(BUILD_CAGRA_HNSWLIB)
target_link_libraries(cuvs_objs PRIVATE hnswlib::hnswlib)
target_compile_definitions(cuvs_objs PUBLIC CUVS_BUILD_CAGRA_HNSWLIB)
Expand Down

0 comments on commit 4e7398a

Please sign in to comment.