diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-01-24 20:31:53 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-01-24 20:31:53 (GMT) |
commit | e357772f202e2636d7e5f9cc0dd1f926dbe327bc (patch) | |
tree | cecc538643ab8355c3dc6ea4cc6fa8abd36a6cf3 /Modules | |
parent | c6ec51c625784ffe6d9ce708473a1d595c79cc31 (diff) | |
download | CMake-e357772f202e2636d7e5f9cc0dd1f926dbe327bc.zip CMake-e357772f202e2636d7e5f9cc0dd1f926dbe327bc.tar.gz CMake-e357772f202e2636d7e5f9cc0dd1f926dbe327bc.tar.bz2 |
CUDAToolkit: Use HINTS as it has higher precedence for searches
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index e138671..676da04 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -734,7 +734,7 @@ if(CUDAToolkit_FOUND) find_library(CUDA_${lib_name}_LIBRARY NAMES ${search_names} - PATHS ${CUDAToolkit_LIBRARY_DIR} + HINTS ${CUDAToolkit_LIBRARY_DIR} ENV CUDA_PATH PATH_SUFFIXES nvidia/current lib64 lib64/stubs lib/x64 lib lib/stubs ) |