mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 21:10:29 +00:00
BUG: RENAME option should be allowd for INSTALL(PROGRAMS) too.
This commit is contained in:
parent
8b9d44d512
commit
ba9c97ccec
@ -855,9 +855,11 @@ bool cmFileCommand::HandleInstallCommand(
|
||||
// Check rename form.
|
||||
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;
|
||||
}
|
||||
if(files.size() > 1)
|
||||
|
Loading…
Reference in New Issue
Block a user