ENH: In find_* implementation centralize addition of trailing slashes

- Create cmFindCommon::AddTrailingSlashes
  - Use it in cmFindBase and cmFindPackageCommand
  - Remove duplication from other find commands
This commit is contained in:
Brad King
2008-06-09 11:57:56 -04:00
parent 3446bab75e
commit d53e5dec37
6 changed files with 23 additions and 29 deletions
+3
View File
@@ -44,6 +44,9 @@ protected:
/** Place a set of search paths under the search roots. */
void RerootPaths(std::vector<std::string>& paths);
/** Add trailing slashes to all search paths. */
void AddTrailingSlashes(std::vector<std::string>& paths);
/** Compute the current default root path mode. */
void SelectDefaultRootPathMode();