From ba9c97ccec7496920981c918eba762f0a00c6ee2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 21 Aug 2006 10:49:17 -0400 Subject: BUG: RENAME option should be allowd for INSTALL(PROGRAMS) too. --- Source/cmFileCommand.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 9eca07b..c855418 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -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) -- cgit v0.12