summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-12-14 19:04:53 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-12-14 19:04:53 (GMT)
commit09a3c8b46b745be1edbd83bc0c22d15b2dc02552 (patch)
tree3936f078de58724e55d693830119600abfe4809a
parent1eed682d7cca9bb2c2b0709a6c3202a3b08613b2 (diff)
downloadCMake-09a3c8b46b745be1edbd83bc0c22d15b2dc02552.zip
CMake-09a3c8b46b745be1edbd83bc0c22d15b2dc02552.tar.gz
CMake-09a3c8b46b745be1edbd83bc0c22d15b2dc02552.tar.bz2
CUDAToolkit: Correctly search all include paths from compiler
The CUDAToolkit usage of `find_path( PATHS )` was incorrectly quoting a list of paths causing none of them to be used.
-rw-r--r--Modules/FindCUDAToolkit.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index b4c596c..469a7ad 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -960,7 +960,7 @@ endif()
# the version of the CUDA toolchain
# Create a separate variable so this directory can be selectively added to math targets.
find_path(CUDAToolkit_CUBLAS_INCLUDE_DIR cublas_v2.h PATHS
- "${CUDAToolkit_INCLUDE_DIRECTORIES}"
+ ${CUDAToolkit_INCLUDE_DIRECTORIES}
NO_DEFAULT_PATH)
if(NOT CUDAToolkit_CUBLAS_INCLUDE_DIR)
@@ -973,7 +973,7 @@ if(NOT CUDAToolkit_CUBLAS_INCLUDE_DIR)
cmake_path(NORMAL_PATH CUDAToolkit_MATH_INCLUDE_DIR)
find_path(CUDAToolkit_CUBLAS_INCLUDE_DIR cublas_v2.h PATHS
- "${CUDAToolkit_INCLUDE_DIRECTORIES}"
+ ${CUDAToolkit_INCLUDE_DIRECTORIES}
)
if(CUDAToolkit_CUBLAS_INCLUDE_DIR)
list(APPEND CUDAToolkit_INCLUDE_DIRECTORIES "${CUDAToolkit_CUBLAS_INCLUDE_DIR}")
@@ -1246,7 +1246,7 @@ if(CUDAToolkit_FOUND)
find_path(CUDAToolkit_CUPTI_INCLUDE_DIR cupti.h PATHS
"${CUDAToolkit_ROOT_DIR}/extras/CUPTI/include"
- "${CUDAToolkit_INCLUDE_DIRS}"
+ ${CUDAToolkit_INCLUDE_DIRS}
PATH_SUFFIXES "../extras/CUPTI/include"
"../../../extras/CUPTI/include"
NO_DEFAULT_PATH)