diff options
author | Brad King <brad.king@kitware.com> | 2006-08-17 18:48:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-17 18:48:54 (GMT) |
commit | 8a72d43c176df44818154019248ad28d043f5dde (patch) | |
tree | 549347ba1e8ebb0fefec838132eff5fd98d74965 /Source/cmInstallGenerator.cxx | |
parent | b642ffa7a82922d99475fa38e9a7f317e029ebf3 (diff) | |
download | CMake-8a72d43c176df44818154019248ad28d043f5dde.zip CMake-8a72d43c176df44818154019248ad28d043f5dde.tar.gz CMake-8a72d43c176df44818154019248ad28d043f5dde.tar.bz2 |
ENH: Started implementing INSTALL(DIRECTORY) command mode. This is not yet finished so it is undocumented and there is no test. These changes also separate the notions of file and directory permissions.
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r-- | Source/cmInstallGenerator.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx index afbc68a..034410b 100644 --- a/Source/cmInstallGenerator.cxx +++ b/Source/cmInstallGenerator.cxx @@ -55,7 +55,8 @@ void cmInstallGenerator const char* file, bool optional /* = false */, const char* properties /* = 0 */, - const char* permissions /* = 0 */, + const char* permissions_file /* = 0 */, + const char* permissions_dir /* = 0 */, std::vector<std::string> const& configurations, const char* component /* = 0 */, const char* rename /* = 0 */ @@ -83,9 +84,13 @@ void cmInstallGenerator { os << " PROPERTIES" << properties; } - if(permissions && *permissions) + if(permissions_file && *permissions_file) { - os << " PERMISSIONS" << permissions; + os << " PERMISSIONS" << permissions_file; + } + if(permissions_dir && *permissions_dir) + { + os << " DIR_PERMISSIONS" << permissions_dir; } if(rename && *rename) { |