summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-16 14:03:04 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-16 14:03:04 (GMT)
commitaffced3f818fbd5fb26fd905a0603806b11c0695 (patch)
tree38168462cbcd7cc51bf7020e79b28d67cf97d86f /Source
parent945073f3fdc53ef4260339f48e45f49a12e609d8 (diff)
downloadCMake-affced3f818fbd5fb26fd905a0603806b11c0695.zip
CMake-affced3f818fbd5fb26fd905a0603806b11c0695.tar.gz
CMake-affced3f818fbd5fb26fd905a0603806b11c0695.tar.bz2
BUG: Return if the file is in any directory not just in first one
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 4aa98ea..5d34ac5 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1959,7 +1959,10 @@ kwsys_stl::string SystemTools::FindProgram(
kwsys_stl::string result = SystemTools::FindProgram(it->c_str(),
path,
noSystemPath);
- return result;
+ if ( !result.empty() )
+ {
+ return result;
+ }
}
return "";
}