BUG: RENAME option should be allowd for INSTALL(PROGRAMS) too.

This commit is contained in:
Brad King 2006-08-21 10:49:17 -04:00
parent 8b9d44d512
commit ba9c97ccec

View File

@ -855,9 +855,11 @@ bool cmFileCommand::HandleInstallCommand(
// Check rename form. // Check rename form.
if(!rename.empty()) if(!rename.empty())
{ {
if(itype != cmTarget::INSTALL_FILES) if(itype != cmTarget::INSTALL_FILES &&
itype != cmTarget::INSTALL_PROGRAMS)
{ {
this->SetError("INSTALL option RENAME may be used only with FILES."); this->SetError("INSTALL option RENAME may be used only with "
"FILES or PROGRAMS.");
return false; return false;
} }
if(files.size() > 1) if(files.size() > 1)