diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-12-08 16:41:12 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-12-08 16:46:54 (GMT) |
commit | f69b9b7305406f39fda3eff8d60fd30e194e3370 (patch) | |
tree | 4b72ea0ef89fc24757ce24e1b3caa5c6f70b7ec9 | |
parent | 618fdc1c42e127e5807c4b863dd7823a8093c15e (diff) | |
download | CMake-f69b9b7305406f39fda3eff8d60fd30e194e3370.zip CMake-f69b9b7305406f39fda3eff8d60fd30e194e3370.tar.gz CMake-f69b9b7305406f39fda3eff8d60fd30e194e3370.tar.bz2 |
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.
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index 0a22e63..6114642 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -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) |