Skip to content

Commit f1e19af

Browse files
authored
Fix C examples CUDAToolkit dependency (#1626)
Authors: - Tamas Bela Feher (https://github.com/tfeher) - Corey J. Nolet (https://github.com/cjnolet) - Robert Maynard (https://github.com/robertmaynard) Approvers: - Robert Maynard (https://github.com/robertmaynard) URL: #1626
1 parent 205c814 commit f1e19af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/c/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# =============================================================================
22
# cmake-format: off
3-
# SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3+
# SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION.
44
# SPDX-License-Identifier: Apache-2.0
55
# cmake-format: on
66

@@ -17,7 +17,7 @@ include(rapids-find)
1717

1818
# ------------- configure project --------------#
1919

20-
rapids_cuda_init_architectures(test_cuvs)
20+
rapids_cuda_init_architectures(test_cuvs_c)
2121

2222
project(test_cuvs_c LANGUAGES C CXX CUDA)
2323

@@ -27,6 +27,7 @@ rapids_cpm_init()
2727
set(BUILD_CUVS_C_LIBRARY ON)
2828
include(../cmake/thirdparty/get_dlpack.cmake)
2929
include(../cmake/thirdparty/get_cuvs.cmake)
30+
find_package(CUDAToolkit REQUIRED)
3031

3132
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror")
3233

0 commit comments

Comments
 (0)