diff options
author | Brad King <brad.king@kitware.com> | 2006-08-21 14:49:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-21 14:49:17 (GMT) |
commit | ba9c97ccec7496920981c918eba762f0a00c6ee2 (patch) | |
tree | eddc5c0e508695e46eab2c134122e409f8d786f1 | |
parent | 8b9d44d512f172116f28fb640b7cfb3e5bb8a4d8 (diff) | |
download | CMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.zip CMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.tar.gz CMake-ba9c97ccec7496920981c918eba762f0a00c6ee2.tar.bz2 |
BUG: RENAME option should be allowd for INSTALL(PROGRAMS) too.
-rw-r--r-- | Source/cmFileCommand.cxx | 6 |
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) |