summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.cxx
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/cmFindBase.cxx
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/cmFindBase.cxx')
-rw-r--r--Source/cmFindBase.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index ce9deb1..183da4a 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -299,11 +299,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
this->GetIgnoredPaths(ignored);
this->FilterPaths(this->SearchPaths, ignored);
- // Handle search root stuff.
- this->RerootPaths(this->SearchPaths);
-
- // Add a trailing slash to all prefixes to aid the search process.
- this->AddTrailingSlashes(this->SearchPaths);
+ this->ComputeFinalPaths();
return true;
}