summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-21 14:49:17 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-21 14:49:17 (GMT)
commitba9c97ccec7496920981c918eba762f0a00c6ee2 (patch)
treeeddc5c0e508695e46eab2c134122e409f8d786f1 /Source/cmFileCommand.cxx
parent8b9d44d512f172116f28fb640b7cfb3e5bb8a4d8 (diff)
downloadCMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.zip
CMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.tar.gz
CMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.tar.bz2
BUG: RENAME option should be allowd for INSTALL(PROGRAMS) too.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx6
1 files 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)