summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-04 00:29:35 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-04 00:29:35 (GMT)
commit06846c4c07294ed460b0ebb2c775b385e2e6d9c9 (patch)
treeb7443a5dce61fc3b5084cc17e2ed7930cc9c738b /Source/cmInstallTargetGenerator.cxx
parenta2e136fd17b693765a4961220433bdf207930583 (diff)
downloadCMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.zip
CMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.tar.gz
CMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.tar.bz2
ENH: Added PERMISSIONS option to the TARGETS mode of the INSTALL command.
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index 6be87ec..c84c4af 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -23,8 +23,10 @@
//----------------------------------------------------------------------------
cmInstallTargetGenerator
-::cmInstallTargetGenerator(cmTarget& t, const char* dest, bool implib):
- Target(&t), Destination(dest), ImportLibrary(implib)
+::cmInstallTargetGenerator(cmTarget& t, const char* dest, bool implib,
+ const char* permissions):
+ Target(&t), Destination(dest), ImportLibrary(implib),
+ Permissions(permissions)
{
this->Target->SetHaveInstallRule(true);
}
@@ -158,7 +160,8 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
// Write code to install the target file.
this->AddInstallRule(os, destination.c_str(), type, fromFile.c_str(),
- this->ImportLibrary, properties);
+ this->ImportLibrary, properties,
+ this->Permissions.c_str());
// Fix the install_name settings in installed binaries.
if(type == cmTarget::SHARED_LIBRARY ||