1# Copyright (c) 2019 - 2024 David Guibert
4# SPDX-License-Identifier: Apache-2.0
6# Copyright (c) 2019 - 2024 David Guibert
7set_property(GLOBAL PROPERTY cuda_can_use_system TRUE) # TODO only supported
8set_property(GLOBAL PROPERTY cuda_depends)
11 # https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html#module:FindCUDAToolkit
12 cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
14 # If the CUDAToolkit_ROOT cmake configuration variable (e.g.,
15 # -DCUDAToolkit_ROOT=/some/path) or environment variable is defined, it will
16 # be searched. If both an environment variable and a configuration variable
17 # are specified, the configuration variable takes precedence.
18 find_package(CUDAToolkit REQUIRED)