diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-16 14:03:04 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-16 14:03:04 (GMT) |
commit | affced3f818fbd5fb26fd905a0603806b11c0695 (patch) | |
tree | 38168462cbcd7cc51bf7020e79b28d67cf97d86f | |
parent | 945073f3fdc53ef4260339f48e45f49a12e609d8 (diff) | |
download | CMake-affced3f818fbd5fb26fd905a0603806b11c0695.zip CMake-affced3f818fbd5fb26fd905a0603806b11c0695.tar.gz CMake-affced3f818fbd5fb26fd905a0603806b11c0695.tar.bz2 |
BUG: Return if the file is in any directory not just in first one
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
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 ""; } |