mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 00:58:59 -05:00
ENH: Do not generate install target unless some INSTALL or INSTALL_* commands have been used. This addresses bug#2827.
This commit is contained in:
@@ -25,6 +25,11 @@ bool cmInstallFilesCommand
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Enable the install target.
|
||||
this->Makefile->GetLocalGenerator()
|
||||
->GetGlobalGenerator()->EnableInstallTarget();
|
||||
|
||||
std::vector<std::string> args;
|
||||
this->Makefile->ExpandSourceListArguments(argsIn, args, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user