summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-24 15:02:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-07-24 15:02:37 (GMT)
commitfdbf952684ee6c4bbfa1e44f97965591e5658c6d (patch)
treea0646249a84492f4cfe584a5148730432c235244 /Modules
parente6f93dc5600645fdc2e43cb79994e55db767c6b7 (diff)
parent09f00a63713c06ffa1830eafb200bc3aa5220e64 (diff)
downloadCMake-fdbf952684ee6c4bbfa1e44f97965591e5658c6d.zip
CMake-fdbf952684ee6c4bbfa1e44f97965591e5658c6d.tar.gz
CMake-fdbf952684ee6c4bbfa1e44f97965591e5658c6d.tar.bz2
Merge topic 'FindCuda_more_search_paths'
09f00a6 FindCUDA: Search for libraries in <prefix>/lib/<arch>/nvidida-current.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDA.cmake6
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)