summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-09-23 18:27:25 (GMT)
committerBrad King <brad.king@kitware.com>2011-09-23 18:36:27 (GMT)
commitb0cd630521658ddf8f8547597ac9c24a725f20e7 (patch)
treecc2ab6061efa6653679263ffcda3cac7897f1820 /Source/cmFindCommon.h
parent8c280435dfd746a897f6ce6696ba27571f195424 (diff)
downloadCMake-b0cd630521658ddf8f8547597ac9c24a725f20e7.zip
CMake-b0cd630521658ddf8f8547597ac9c24a725f20e7.tar.gz
CMake-b0cd630521658ddf8f8547597ac9c24a725f20e7.tar.bz2
Refactor find_* command final path list computation
All find_* commands re-root the list of paths and then add trailing slashes. Factor this pair of calls out into a dedicated method. The new method would be the only caller to AddTrailingSlashes, so subsume that method into it.
Diffstat (limited to 'Source/cmFindCommon.h')
-rw-r--r--Source/cmFindCommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h
index 875c223..542805f 100644
--- a/Source/cmFindCommon.h
+++ b/Source/cmFindCommon.h
@@ -47,8 +47,8 @@ protected:
void FilterPaths(std::vector<std::string>& paths,
const std::set<std::string>& ignore);
- /** Add trailing slashes to all search paths. */
- void AddTrailingSlashes(std::vector<std::string>& paths);
+ /** Compute final search path list (reroot + trailing slash). */
+ void ComputeFinalPaths();
/** Compute the current default root path mode. */
void SelectDefaultRootPathMode();