summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-24 14:31:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-24 14:31:41 (GMT)
commitfd14f8733934469a524d3f2be595aba20c47c82c (patch)
tree982219611cf7b91a649bb5f4369f6c1f907509eb /Modules
parent32f13fbe09fc8a5814bb3137abf2158cf1e24807 (diff)
parenteacf7decbf78a184cdad7a6fd533aa4f433ec27f (diff)
downloadCMake-fd14f8733934469a524d3f2be595aba20c47c82c.zip
CMake-fd14f8733934469a524d3f2be595aba20c47c82c.tar.gz
CMake-fd14f8733934469a524d3f2be595aba20c47c82c.tar.bz2
Merge topic 'GetPrerequisites-find_item_basename'
eacf7dec GetPrerequisites: also try to resolve just the basename
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GetPrerequisites.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 1b23800..417af7c 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -399,6 +399,11 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
set(ri "ri-NOTFOUND")
find_file(ri "${item}" ${exepath} ${dirs} NO_DEFAULT_PATH)
find_file(ri "${item}" ${exepath} ${dirs} /usr/lib)
+
+ get_filename_component(basename_item "${item}" NAME)
+ find_file(ri "${basename_item}" PATHS ${exepath} ${dirs} NO_DEFAULT_PATH)
+ find_file(ri "${basename_item}" PATHS /usr/lib)
+
if(ri)
#message(STATUS "info: 'find_file' in exepath/dirs (${ri})")
set(resolved 1)