ENH: if no COMPONENT is specified, make this install item part of the

"Unspecified" component -> if no components are used at all, no change in
behaviour, if components are used completely, no change in behaviour, since
this default will be overridden everywhere, if components where used partly,
it is now possible to install only the unspecified items (e.g. everything
which wasn't marked as "Development")

Alex


Alex
This commit is contained in:
Alexander Neundorf 2007-08-01 17:10:22 -04:00
parent 64f40a2816
commit 8046390f1e
2 changed files with 7 additions and 7 deletions

View File

@ -151,9 +151,9 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
std::string archive_permissions; std::string archive_permissions;
std::string library_permissions; std::string library_permissions;
std::string runtime_permissions; std::string runtime_permissions;
std::string archive_component; std::string archive_component = "Unspecified";
std::string library_component; std::string library_component = "Unspecified";
std::string runtime_component; std::string runtime_component = "Unspecified";
std::string exportName; std::string exportName;
std::vector<std::string> archive_configurations; std::vector<std::string> archive_configurations;
std::vector<std::string> library_configurations; std::vector<std::string> library_configurations;
@ -635,7 +635,7 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
std::string rename; std::string rename;
std::string permissions; std::string permissions;
std::vector<std::string> configurations; std::vector<std::string> configurations;
std::string component; std::string component = "Unspecified";
bool optional = false; bool optional = false;
for(unsigned int i=1; i < args.size(); ++i) for(unsigned int i=1; i < args.size(); ++i)
{ {
@ -824,7 +824,7 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args)
std::string permissions_file; std::string permissions_file;
std::string permissions_dir; std::string permissions_dir;
std::vector<std::string> configurations; std::vector<std::string> configurations;
std::string component; std::string component = "Unspecified";
std::string literal_args; std::string literal_args;
for(unsigned int i=1; i < args.size(); ++i) for(unsigned int i=1; i < args.size(); ++i)
{ {

View File

@ -315,8 +315,8 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
std::string comment ="\n"; std::string comment ="\n";
comment += this->RunResultVariable; comment += this->RunResultVariable;
comment += "\n indicates whether the executable would have been able " comment += "\n indicates whether the executable would have been able "
"to run if it was\n" "to run on its\n"
" executed on its target platform. If so, set "; " target platform. If so, set ";
comment += this->RunResultVariable; comment += this->RunResultVariable;
comment += " to\n" comment += " to\n"
" the exit code (in many cases 0 for success), otherwise " " the exit code (in many cases 0 for success), otherwise "