diff options
author | Brad King <brad.king@kitware.com> | 2021-02-03 15:51:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-03 15:51:29 (GMT) |
commit | 8a131c92a4a677c9e7ceab3f0715d61a0677f8f1 (patch) | |
tree | 4d5d369f63ca781334cd117124b9616cb80f5376 /Modules/FindCUDAToolkit.cmake | |
parent | a24679e9f30c222a9326f3dc9dc0d2a500c43e6b (diff) | |
parent | 4ea6d3c3aea25968fbbd2c4cece56a10eccf48ab (diff) | |
download | CMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.zip CMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.tar.gz CMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.tar.bz2 |
Merge topic 'findcudatoolkit_env_path'
4ea6d3c3ae FindCUDAToolkit: Restore use of CUDA_PATH environment variable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Raul Tambre <raul@tambre.ee>
Merge-request: !5761
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-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 0d80c80..ac2516c 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -578,7 +578,7 @@ else() _CUDAToolkit_find_root_dir(SEARCH_PATHS "${CUDAToolkit_ROOT}" FIND_FLAGS PATH_SUFFIXES bin NO_DEFAULT_PATH) endif() if(NOT CUDAToolkit_ROOT_DIR) - _CUDAToolkit_find_root_dir(FIND_FLAGS PATHS "ENV CUDA_PATH" PATH_SUFFIXES bin) + _CUDAToolkit_find_root_dir(FIND_FLAGS PATHS ENV CUDA_PATH PATH_SUFFIXES bin) endif() # If the user specified CUDAToolkit_ROOT but the toolkit could not be found, this is an error. |