diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-30 20:22:01 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-30 20:22:01 (GMT) |
commit | 34e3ce9e4e6a6055df2a0102e0ef611fe2ac503e (patch) | |
tree | 0b49a3a250cc66b40b52a588494d9b75232ff3bf | |
parent | 52bf51b42538a013358a58a8550c7a8253579486 (diff) | |
download | CMake-34e3ce9e4e6a6055df2a0102e0ef611fe2ac503e.zip CMake-34e3ce9e4e6a6055df2a0102e0ef611fe2ac503e.tar.gz CMake-34e3ce9e4e6a6055df2a0102e0ef611fe2ac503e.tar.bz2 |
STYLE: rename FILENAME keyword to FILE, because FILENAME is used in no other
place
Alex
-rw-r--r-- | Source/cmInstallCommand.cxx | 17 | ||||
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 1 |
2 files changed, 17 insertions, 1 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index bee6f50..1099600 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -152,6 +152,15 @@ bool cmInstallCommand::HandleScriptMode(std::vector<std::string> const& args) return true; } + +/*struct InstallPart +{ + InstallPart(cmCommandArgumentsHelper* helper, const char* key, + cmCommandArgumentGroup* group); + cmCAStringVector argVector; + cmInstallCommandArguments args; +};*/ + //---------------------------------------------------------------------------- bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args) { @@ -1010,7 +1019,7 @@ bool cmInstallCommand::HandleExportMode(std::vector<std::string> const& args) cmInstallCommandArguments ica; cmCAStringVector exports(&ica.Parser, "EXPORT"); cmCAString prefix(&ica.Parser, "PREFIX", &ica.ArgumentGroup); - cmCAString filename(&ica.Parser, "FILENAME", &ica.ArgumentGroup); + cmCAString filename(&ica.Parser, "FILE", &ica.ArgumentGroup); exports.Follows(0); ica.ArgumentGroup.Follows(&exports); @@ -1043,6 +1052,9 @@ bool cmInstallCommand::HandleExportMode(std::vector<std::string> const& args) GetExportSet(exportIt->c_str()); if (exportSet == 0) { + cmOStringStream e; + e << "EXPORT given unknown export name \"" << exportIt->c_str() << "\"."; + this->SetError(e.str().c_str()); return false; } @@ -1058,6 +1070,9 @@ bool cmInstallCommand::HandleExportMode(std::vector<std::string> const& args) } else { + cmOStringStream e; + e << "EXPORT failed, maybe a target is exported more than once."; + this->SetError(e.str().c_str()); delete exportGenerator; return false; } diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index e0ff82c..ed04ebc 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -154,6 +154,7 @@ bool cmInstallExportGenerator::SetExportSet(const char* name, if (targetName == this->Targets[i]->Target->GetName()) { targetWithProps = this->Targets[i]; + break; } } |