diff options
author | Raul Tambre <raul@tambre.ee> | 2020-06-12 14:30:17 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-06-12 20:13:57 (GMT) |
commit | ec59fb6c315f2797e72cab985110555c63ba65f8 (patch) | |
tree | f0d4c250cc029da76f9be52308e1d5eddfa087fe /Modules/CMakeCUDACompiler.cmake.in | |
parent | 0a056246a1839cbb89b72e8f1f65b583f33f794b (diff) | |
download | CMake-ec59fb6c315f2797e72cab985110555c63ba65f8.zip CMake-ec59fb6c315f2797e72cab985110555c63ba65f8.tar.gz CMake-ec59fb6c315f2797e72cab985110555c63ba65f8.tar.bz2 |
CUDA: Determine CUDA toolkit location for NVCC
Similar to how we already do for Clang. Avoids a lot of redundant work in
FindCUDAToolkit.
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r-- | Modules/CMakeCUDACompiler.cmake.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in index 64fb469..704ad09 100644 --- a/Modules/CMakeCUDACompiler.cmake.in +++ b/Modules/CMakeCUDACompiler.cmake.in @@ -43,6 +43,9 @@ if(CMAKE_CUDA_LIBRARY_ARCHITECTURE) set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_CUDA_LIBRARY_ARCHITECTURE@") endif() +set(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT "@CMAKE_CUDA_COMPILER_TOOLKIT_ROOT@") +set(CMAKE_CUDA_COMPILER_LIBRARY_ROOT "@CMAKE_CUDA_COMPILER_LIBRARY_ROOT@") + set(CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES "@CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES@") set(CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES@") |