From 4372f3165100106a6bfa7464b3d593409dea7df7 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 2 Aug 2022 13:03:58 -0700 Subject: [PATCH] Fix typos in Python CMakeLists CUDA arch file (#2475) These typos would prevent properly handling required CMake features as determined by `rapids_cuda_init_architectures`. This only affects compilations where `FIND_CUGRAPH_CPP=OFF`. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Rick Ratzel (https://github.com/rlratzel) - Brad Rees (https://github.com/BradReesWork) URL: https://github.com/rapidsai/cugraph/pull/2475 --- python/cugraph/CMakeLists.txt | 2 +- python/pylibcugraph/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/cugraph/CMakeLists.txt b/python/cugraph/CMakeLists.txt index f90035f9460..ee929ca6e27 100644 --- a/python/cugraph/CMakeLists.txt +++ b/python/cugraph/CMakeLists.txt @@ -45,7 +45,7 @@ if(NOT cugraph_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. include(rapids-cuda) - rapids_cuda_init_architectures(CUGRAPH) + rapids_cuda_init_architectures(cugraph-python) enable_language(CUDA) # Since cugraph only enables CUDA optionally, we need to manually include the file that diff --git a/python/pylibcugraph/CMakeLists.txt b/python/pylibcugraph/CMakeLists.txt index 030da9c3e38..9126536e472 100644 --- a/python/pylibcugraph/CMakeLists.txt +++ b/python/pylibcugraph/CMakeLists.txt @@ -49,13 +49,13 @@ if(NOT cugraph_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. include(rapids-cuda) - rapids_cuda_init_architectures(CUGRAPH) + rapids_cuda_init_architectures(pylibcugraph-python) enable_language(CUDA) # Since cugraph only enables CUDA optionally, we need to manually include the file that # rapids_cuda_init_architectures relies on `project` including. - include("${CMAKE_PROJECT_cugraph-python_INCLUDE}") + include("${CMAKE_PROJECT_pylibcugraph-python_INCLUDE}") add_subdirectory(../../cpp cugraph-cpp)