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:28 (GMT) |
commit | c131afc190d69f605c83391d12dde142f481a698 (patch) | |
tree | 9deddad49355e9a736d11e28bfc0b148ef8cdeb0 | |
parent | 0c86d15459eeef2ddd15644b7bb3d7854f226334 (diff) | |
parent | 4ea6d3c3aea25968fbbd2c4cece56a10eccf48ab (diff) | |
download | CMake-c131afc190d69f605c83391d12dde142f481a698.zip CMake-c131afc190d69f605c83391d12dde142f481a698.tar.gz CMake-c131afc190d69f605c83391d12dde142f481a698.tar.bz2 |
Merge topic 'findcudatoolkit_env_path' into release-3.19
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
-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 b3c8569..d4cd338 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -561,7 +561,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. |