diff options
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r-- | Source/cmInstallGenerator.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx index a7e1d6f..0cb3a51 100644 --- a/Source/cmInstallGenerator.cxx +++ b/Source/cmInstallGenerator.cxx @@ -52,7 +52,9 @@ void cmInstallGenerator::AddInstallRule(std::ostream& os, int type, const char* file, bool optional /* = false */, - const char* properties /* = 0 */) + const char* properties /* = 0 */, + const char* permissions /* = 0 */, + const char* rename /* = 0 */) { // Use the FILE command to install the file. std::string stype; @@ -75,5 +77,13 @@ void cmInstallGenerator::AddInstallRule(std::ostream& os, { os << " PROPERTIES" << properties; } + if(permissions && *permissions) + { + os << " PERMISSIONS" << permissions; + } + if(rename && *rename) + { + os << " RENAME \"" << rename << "\""; + } os << " FILES \"" << file << "\")\n"; } |