summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-30 18:33:48 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-30 18:33:48 (GMT)
commit08b14163ee2cc9cced08d80b2c81b29c83072229 (patch)
treeaabd429ef1d4d93a39429f192e5b56b5b0feb6b4 /Source/cmInstallGenerator.cxx
parent3cf3fc510febc42af0db07c71c7c3925724b3201 (diff)
downloadCMake-08b14163ee2cc9cced08d80b2c81b29c83072229.zip
CMake-08b14163ee2cc9cced08d80b2c81b29c83072229.tar.gz
CMake-08b14163ee2cc9cced08d80b2c81b29c83072229.tar.bz2
ENH: Added named component installation implementation. Installation behavior should be unchanged unless -DCOMPONENT=<name> is specified when cmake_install.cmake is invoked.
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r--Source/cmInstallGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx
index 3a7fd92..44b6936 100644
--- a/Source/cmInstallGenerator.cxx
+++ b/Source/cmInstallGenerator.cxx
@@ -54,6 +54,7 @@ void cmInstallGenerator::AddInstallRule(std::ostream& os,
bool optional /* = false */,
const char* properties /* = 0 */,
const char* permissions /* = 0 */,
+ const char* component /* = 0 */,
const char* rename /* = 0 */)
{
// Use the FILE command to install the file.
@@ -86,5 +87,9 @@ void cmInstallGenerator::AddInstallRule(std::ostream& os,
{
os << " RENAME \"" << rename << "\"";
}
+ if(component && *component)
+ {
+ os << " COMPONENTS \"" << component << "\"";
+ }
os << " FILES \"" << file << "\")\n";
}