Skip to content

Commit

Permalink
Correctly initialize architectures when building the C++ library from…
Browse files Browse the repository at this point in the history
… the Python build.
  • Loading branch information
vyasr committed May 16, 2022
1 parent 41acb32 commit 627cdbd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/cuspatial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ else()
endif()

if(NOT cuspatial_FOUND)
# TODO: This will not be necessary once we upgrade to CMake 3.22, which will pull in the required
# languages for the C++ project even if this project does not require those languges.
# TODO: This will not be necessary once we upgrade to CMake 3.22, which will
# pull in the required languages for the C++ project even if this project
# does not require those languges.
include(rapids-cuda)
rapids_cuda_init_architectures(cuspatial)
enable_language(CUDA)
# Since cuspatial only enables CUDA optionally we need to manually include the file that
# rapids_cuda_init_architectures relies on `project` including.
include("${CMAKE_PROJECT_cuspatial_INCLUDE}")

add_subdirectory(../../cpp cuspatial-cpp)

install(TARGETS cuspatial DESTINATION cuspatial/_lib)
Expand Down

0 comments on commit 627cdbd

Please sign in to comment.