From 492e5f01fa032b21538adc0bd0abb2255341975c Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 18 Jun 2020 15:49:25 -0400 Subject: CUDA: Simplify CMAKE_CUDA_COMPILER_TOOLKIT_ROOT computation --- Modules/CMakeDetermineCUDACompiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake index cb280f6..76e69c5 100644 --- a/Modules/CMakeDetermineCUDACompiler.cmake +++ b/Modules/CMakeDetermineCUDACompiler.cmake @@ -173,7 +173,7 @@ if(NOT CMAKE_CUDA_COMPILER_ID_RUN) endif() get_filename_component(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT "${_CUDA_NVCC_EXECUTABLE}" DIRECTORY) - get_filename_component(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT "${CMAKE_CUDA_COMPILER_TOOLKIT_ROOT}" DIRECTORY ABSOLUTE) + get_filename_component(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT "${CMAKE_CUDA_COMPILER_TOOLKIT_ROOT}" DIRECTORY) # CMAKE_CUDA_COMPILER_LIBRARY_ROOT contains the device library and version file. # In a non-scattered installation this is equivalent to CMAKE_CUDA_COMPILER_TOOLKIT_ROOT. -- cgit v0.12