From a2e136fd17b693765a4961220433bdf207930583 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 3 Mar 2006 18:44:32 -0500 Subject: ENH: Added PERMISSIONS and RENAME options to the INSTALL command's FILES and PROGRAMS mode, and corresponding support to FILE(INSTALL). Default permissions for shared libraries on non-Windows/non-OSX platforms no longer has the execute bit set. --- Source/cmInstallFilesGenerator.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Source/cmInstallFilesGenerator.cxx') diff --git a/Source/cmInstallFilesGenerator.cxx b/Source/cmInstallFilesGenerator.cxx index 7a73327cef..ff32fe2bde 100644 --- a/Source/cmInstallFilesGenerator.cxx +++ b/Source/cmInstallFilesGenerator.cxx @@ -21,8 +21,10 @@ //---------------------------------------------------------------------------- cmInstallFilesGenerator ::cmInstallFilesGenerator(std::vector const& files, - const char* dest, bool programs): - Files(files), Destination(dest), Programs(programs) + const char* dest, bool programs, + const char* permissions, const char* rename): + Files(files), Destination(dest), Programs(programs), + Permissions(permissions), Rename(rename) { } @@ -39,9 +41,13 @@ void cmInstallFilesGenerator::GenerateScript(std::ostream& os) for(std::vector::const_iterator fi = this->Files.begin(); fi != this->Files.end(); ++fi) { + bool not_optional = false; + const char* no_properties = 0; this->AddInstallRule(os, this->Destination.c_str(), (this->Programs ? cmTarget::INSTALL_PROGRAMS - : cmTarget::INSTALL_FILES), fi->c_str()); + : cmTarget::INSTALL_FILES), fi->c_str(), + not_optional, no_properties, + this->Permissions.c_str(), this->Rename.c_str()); } } -- cgit v1.2.1