diff options
author | Brad King <brad.king@kitware.com> | 2008-06-09 15:57:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-09 15:57:56 (GMT) |
commit | d53e5dec3748e1d800dae595dcb78f2c4d55f788 (patch) | |
tree | d53cc056e338a02277753caabfe5ae5bb7a41170 /Source/cmFindBase.cxx | |
parent | 3446bab75eb9a686841ec9bf6683beac603cbde5 (diff) | |
download | CMake-d53e5dec3748e1d800dae595dcb78f2c4d55f788.zip CMake-d53e5dec3748e1d800dae595dcb78f2c4d55f788.tar.gz CMake-d53e5dec3748e1d800dae595dcb78f2c4d55f788.tar.bz2 |
ENH: In find_* implementation centralize addition of trailing slashes
- Create cmFindCommon::AddTrailingSlashes
- Use it in cmFindBase and cmFindPackageCommand
- Remove duplication from other find commands
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r-- | Source/cmFindBase.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index 68e091b..41e09f0 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -273,6 +273,10 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) // Handle search root stuff. this->RerootPaths(this->SearchPaths); + + // Add a trailing slash to all prefixes to aid the search process. + this->AddTrailingSlashes(this->SearchPaths); + return true; } |