1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

CUDAToolkit: Restore ability to find cupti library

In commit f69b9b7305 (CUDAToolkit: Restore ability to find cupti
headers, 2023-12-08, v3.28.1~8^2) we did not update the CUPTI library
searches to add the extra search path needed for certain install layouts
(only the header search path). Add the additional library search paths.

Fixes: #26770
Issue: #25484
This commit is contained in:
Marcus D. Hanwell
2025-03-26 12:53:23 -04:00
committed by Brad King
parent de5749332a
commit cbb8f30ee6

View File

@@ -1298,7 +1298,9 @@ if(CUDAToolkit_FOUND)
set(_cmake_cupti_extra_paths extras/CUPTI/lib64/
extras/CUPTI/lib/
../extras/CUPTI/lib64/
../extras/CUPTI/lib/)
../extras/CUPTI/lib/
../../../extras/CUPTI/lib64/
../../../extras/CUPTI/lib/)
_CUDAToolkit_find_and_add_import_lib(cupti
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")