summaryrefslogtreecommitdiff
path: root/Source/cmInstallDirectoryGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-07-02 14:56:57 -0400
committerBrad King <brad.king@kitware.com>2007-07-02 14:56:57 -0400
commit7f29f8966d672a2f8ef50b2249f6d826d1702bdc (patch)
tree3508ba83985e80094c6f68518dc49cdf6f9f910c /Source/cmInstallDirectoryGenerator.cxx
parentfda7753f5ccac7ed2d3c9822e55cebd42c4467d2 (diff)
downloadcmake-7f29f8966d672a2f8ef50b2249f6d826d1702bdc.tar.gz
ENH: Further cleanup of installation script generation. The per-component and per-configuration testing is now done in cmake code instead of in the FILE(INSTALL) command. The generation of the cmake code to do these tests is centralized in cmInstallGenerator. Old-style shared library versioning and component/config support code has been removed from FILE(INSTALL). This commit is surrounded by the tags CMake-InstallGeneratorCleanup2-pre and CMake-InstallGeneratorCleanup2-post.
Diffstat (limited to 'Source/cmInstallDirectoryGenerator.cxx')
-rw-r--r--Source/cmInstallDirectoryGenerator.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmInstallDirectoryGenerator.cxx b/Source/cmInstallDirectoryGenerator.cxx
index 1a80c467ea..350a4fdd28 100644
--- a/Source/cmInstallDirectoryGenerator.cxx
+++ b/Source/cmInstallDirectoryGenerator.cxx
@@ -27,9 +27,8 @@ cmInstallDirectoryGenerator
std::vector<std::string> const& configurations,
const char* component,
const char* literal_args):
- cmInstallGenerator(dest), Directories(dirs),
+ cmInstallGenerator(dest, configurations, component), Directories(dirs),
FilePermissions(file_permissions), DirPermissions(dir_permissions),
- Configurations(configurations), Component(component),
LiteralArguments(literal_args)
{
}
@@ -41,7 +40,9 @@ cmInstallDirectoryGenerator
}
//----------------------------------------------------------------------------
-void cmInstallDirectoryGenerator::GenerateScript(std::ostream& os)
+void
+cmInstallDirectoryGenerator::GenerateScriptActions(std::ostream& os,
+ Indent const& indent)
{
// Write code to install the directories.
bool not_optional = false;
@@ -53,6 +54,6 @@ void cmInstallDirectoryGenerator::GenerateScript(std::ostream& os)
not_optional, no_properties,
this->FilePermissions.c_str(),
this->DirPermissions.c_str(),
- this->Configurations, this->Component.c_str(),
- no_rename, this->LiteralArguments.c_str());
+ no_rename, this->LiteralArguments.c_str(),
+ indent);
}