diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2017-11-20 15:29:25 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2017-11-20 15:29:25 (GMT) |
commit | a62d50ec56087bc6364c2e6c097b312167839957 (patch) | |
tree | ccd039133f878c223a4debd63e5b369ab87dc214 /Modules/FindCUDA.cmake | |
parent | fd56d6a8e637750cbf2e038bde12164962c66bc4 (diff) | |
download | CMake-a62d50ec56087bc6364c2e6c097b312167839957.zip CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.gz CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.bz2 |
Modules: Replace coded PATHS with PATH_SUFFIXES
Some modules assume that `/usr` and `/usr/local` are the only
`CMAKE_PREFIX_PATH` entries and explicitly enumerate all paths instead
of using `PATH_SUFFIXES` and relying on the dynamic set of prefix paths.
This commit attempts to rectify that behavior.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r-- | Modules/FindCUDA.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 8708938..9ea8136 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -666,8 +666,7 @@ if(NOT CUDA_TOOLKIT_ROOT_DIR AND NOT CMAKE_CROSSCOMPILING) find_path(CUDA_TOOLKIT_ROOT_DIR NAMES nvcc nvcc.exe PATHS /opt/cuda/bin - /usr/local/bin - /usr/local/cuda/bin + PATH_SUFFIXES cuda/bin DOC "Toolkit location." ) |