mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
CUDAToolkit: Restore ability to find cupti headers
Fixes #25484 PR !8835 failed to update the CUPTI header searches to use the new internal FindCUDAToolkit search variables. This caused the CUDA::cupti target to always not exist.
This commit is contained in:
@@ -1244,8 +1244,9 @@ if(CUDAToolkit_FOUND)
|
||||
|
||||
find_path(CUDAToolkit_CUPTI_INCLUDE_DIR cupti.h PATHS
|
||||
"${CUDAToolkit_ROOT_DIR}/extras/CUPTI/include"
|
||||
"${CUDAToolkit_INCLUDE_DIR}/../extras/CUPTI/include"
|
||||
"${CUDAToolkit_INCLUDE_DIR}"
|
||||
"${CUDAToolkit_INCLUDE_DIRS}"
|
||||
PATH_SUFFIXES "../extras/CUPTI/include"
|
||||
"../../../extras/CUPTI/include"
|
||||
NO_DEFAULT_PATH)
|
||||
mark_as_advanced(CUDAToolkit_CUPTI_INCLUDE_DIR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user