diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-01-23 18:07:21 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-01-23 18:07:21 (GMT) |
commit | 48bd2e06305fffac7a4676719880e31dfd0e6b9c (patch) | |
tree | 1556d9449c355db0172acc31e1ed2923d3bc579b /Modules/FindCUDAToolkit.cmake | |
parent | 69fcad93322e20f1b0c171c582f28bd97fc6132d (diff) | |
download | CMake-48bd2e06305fffac7a4676719880e31dfd0e6b9c.zip CMake-48bd2e06305fffac7a4676719880e31dfd0e6b9c.tar.gz CMake-48bd2e06305fffac7a4676719880e31dfd0e6b9c.tar.bz2 |
CUDAToolkit: Make sure to also search 'stubs' directory
Fixes #20252
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index 48893bd..6a40ace 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -686,7 +686,7 @@ find_path(CUDAToolkit_INCLUDE_DIR # And find the CUDA Runtime Library libcudart find_library(CUDA_CUDART NAMES cudart - PATH_SUFFIXES lib64 lib/x64 + PATH_SUFFIXES lib64 lib64/stubs lib/x64 ) if (NOT CUDA_CUDART AND NOT CUDAToolkit_FIND_QUIETLY) message(STATUS "Unable to find cudart library.") @@ -736,7 +736,7 @@ if(CUDAToolkit_FOUND) NAMES ${search_names} PATHS ${CUDAToolkit_LIBRARY_DIR} ENV CUDA_PATH - PATH_SUFFIXES nvidia/current lib64 lib/x64 lib + PATH_SUFFIXES nvidia/current lib64 lib64/stubs lib/x64 lib lib/stubs ) if (NOT CUDA::${lib_name} AND CUDA_${lib_name}_LIBRARY) |