diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-05-24 14:03:57 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2013-07-22 13:16:11 (GMT) |
commit | 09f00a63713c06ffa1830eafb200bc3aa5220e64 (patch) | |
tree | b07bc44194d1714f6c2056f7d34b64dd039a8737 | |
parent | 6aba97642737873921f312e0bbaf18edfabf6e6f (diff) | |
download | CMake-09f00a63713c06ffa1830eafb200bc3aa5220e64.zip CMake-09f00a63713c06ffa1830eafb200bc3aa5220e64.tar.gz CMake-09f00a63713c06ffa1830eafb200bc3aa5220e64.tar.bz2 |
FindCUDA: Search for libraries in <prefix>/lib/<arch>/nvidida-current.
Ubuntu install the CUDA libraries into a location that is different
than the default location provided by the NVidia installer. So we
teach the FindCUDA package to also find the Ubuntu install location.
-rw-r--r-- | Modules/FindCUDA.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 5a680e3..0390ae4 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -607,7 +607,11 @@ macro(cuda_find_library_local_first_with_path_ext _var _names _doc _path_ext ) NO_DEFAULT_PATH ) # Search default search paths, after we search our own set of paths. - find_library(${_var} NAMES ${_names} DOC ${_doc}) + find_library(${_var} + NAMES ${_names} + PATHS "/usr/lib/nvidia-current" + DOC ${_doc} + ) endmacro() macro(cuda_find_library_local_first _var _names _doc) |