diff options
-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) |