diff options
author | Brad King <brad.king@kitware.com> | 2007-12-15 19:17:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-15 19:17:21 (GMT) |
commit | 994c88559a57a30c43be720f8bfb56dcbda58e58 (patch) | |
tree | 6900395b3b9f46cfbb8045180e7adb359a75ee1e /Source/cmFindPackageCommand.cxx | |
parent | 540a98aa450767a5e8c62e011058f0037b8884af (diff) | |
download | CMake-994c88559a57a30c43be720f8bfb56dcbda58e58.zip CMake-994c88559a57a30c43be720f8bfb56dcbda58e58.tar.gz CMake-994c88559a57a30c43be720f8bfb56dcbda58e58.tar.bz2 |
STYLE: Removed trailing whitespace.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 1f534a5..96afe17 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -194,7 +194,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args) f = "/" + f; f = this->Makefile->GetCurrentDirectory() + f; } - + if(cmSystemTools::FileExists(f.c_str())) { if(this->ReadListFile(f.c_str())) @@ -222,11 +222,11 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args) else if(!quiet || required) { cmOStringStream e; - e << "FIND_PACKAGE could not find Find" << this->Name + e << "FIND_PACKAGE could not find Find" << this->Name << ".cmake nor config file " << this->Config << ".\n" - << "Adjust CMAKE_MODULE_PATH to find Find" << this->Name - << ".cmake or set " << this->Variable - << "\nto the directory containing " << this->Config + << "Adjust CMAKE_MODULE_PATH to find Find" << this->Name + << ".cmake or set " << this->Variable + << "\nto the directory containing " << this->Config << " in order to use " << this->Name << "."; cmSystemTools::Error(e.str().c_str()); if(required) @@ -446,17 +446,17 @@ bool cmFindPackageCommand::ReadListFile(const char* f) void cmFindPackageCommand::AppendToProperty(const char* propertyName) { std::string propertyValue; - const char *prop = + const char *prop = this->Makefile->GetCMakeInstance()->GetProperty(propertyName); if (prop && *prop) { propertyValue = prop; - + std::vector<std::string> contents; cmSystemTools::ExpandListArgument(propertyValue, contents, false); - + bool alreadyInserted = false; - for(std::vector<std::string>::const_iterator it = contents.begin(); + for(std::vector<std::string>::const_iterator it = contents.begin(); it != contents.end(); ++ it ) { if (*it == this->Name) @@ -475,7 +475,7 @@ void cmFindPackageCommand::AppendToProperty(const char* propertyName) { propertyValue = this->Name; } - this->Makefile->GetCMakeInstance()->SetProperty(propertyName, + this->Makefile->GetCMakeInstance()->SetProperty(propertyName, propertyValue.c_str()); } |