mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06: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:
@@ -26,6 +26,10 @@ bool cmInstallProgramsCommand
|
||||
return false;
|
||||
}
|
||||
|
||||
// Enable the install target.
|
||||
this->Makefile->GetLocalGenerator()
|
||||
->GetGlobalGenerator()->EnableInstallTarget();
|
||||
|
||||
// Create an INSTALL_PROGRAMS target specifically for this path.
|
||||
this->TargetName = "INSTALL_PROGRAMS_"+args[0];
|
||||
cmTarget& target = this->Makefile->GetTargets()[this->TargetName];
|
||||
|
||||
Reference in New Issue
Block a user