Skip to content

Commit

Permalink
Merge branch 'cagra-c-api' of github.com:divyegala/cuvs into cagra-c-api
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Jan 26, 2024
2 parents 06acb2a + 0b2ed18 commit ef68e90
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions python/cuvs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ option(FIND_CUVS_CPP "Search for existing CUVS C++ installations before defaulti
OFF
)

option(CUVS_BUILD_WHEELS "Whether this build is generating a Python wheel." OFF)

# If the user requested it we attempt to find CUVS.
if(FIND_CUVS_CPP)
find_package(cuvs ${cuvs_version})
Expand All @@ -50,15 +48,9 @@ include(rapids-cython)

if(NOT cuvs_FOUND)
set(BUILD_TESTS OFF)
set(_exclude_from_all "")
if(CUVS_BUILD_WHEELS)
# Statically link dependencies if building wheels
set(CUDA_STATIC_RUNTIME ON)
# Don't install the cuvs C++ targets into wheels
set(_exclude_from_all EXCLUDE_FROM_ALL)
endif()
set(CUDA_STATIC_RUNTIME ON)

add_subdirectory(../../cpp cuvs-cpp ${_exclude_from_all})
add_subdirectory(../../cpp cuvs-cpp EXCLUDE_FROM_ALL)

# When building the C++ libraries from source we must copy libcuvs.so alongside the Cython
# libraries TODO: when we have a single 'compiled' cuvs library, we shouldn't need this
Expand Down

0 comments on commit ef68e90

Please sign in to comment.