summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallFilesGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-07-02 18:56:57 (GMT)
committerBrad King <brad.king@kitware.com>2007-07-02 18:56:57 (GMT)
commit7f29f8966d672a2f8ef50b2249f6d826d1702bdc (patch)
tree3508ba83985e80094c6f68518dc49cdf6f9f910c /Source/cmInstallFilesGenerator.cxx
parentfda7753f5ccac7ed2d3c9822e55cebd42c4467d2 (diff)
downloadCMake-7f29f8966d672a2f8ef50b2249f6d826d1702bdc.zip
CMake-7f29f8966d672a2f8ef50b2249f6d826d1702bdc.tar.gz
CMake-7f29f8966d672a2f8ef50b2249f6d826d1702bdc.tar.bz2
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/cmInstallFilesGenerator.cxx')
-rw-r--r--Source/cmInstallFilesGenerator.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmInstallFilesGenerator.cxx b/Source/cmInstallFilesGenerator.cxx
index d487aba..ef7eac7 100644
--- a/Source/cmInstallFilesGenerator.cxx
+++ b/Source/cmInstallFilesGenerator.cxx
@@ -27,9 +27,10 @@ cmInstallFilesGenerator
const char* component,
const char* rename,
bool optional):
- cmInstallGenerator(dest), Files(files), Programs(programs),
- FilePermissions(file_permissions), Configurations(configurations),
- Component(component), Rename(rename), Optional(optional)
+ cmInstallGenerator(dest, configurations, component),
+ Files(files), Programs(programs),
+ FilePermissions(file_permissions),
+ Rename(rename), Optional(optional)
{
}
@@ -40,7 +41,8 @@ cmInstallFilesGenerator
}
//----------------------------------------------------------------------------
-void cmInstallFilesGenerator::GenerateScript(std::ostream& os)
+void cmInstallFilesGenerator::GenerateScriptActions(std::ostream& os,
+ Indent const& indent)
{
// Write code to install the files.
const char* no_properties = 0;
@@ -52,7 +54,5 @@ void cmInstallFilesGenerator::GenerateScript(std::ostream& os)
this->Files,
this->Optional, no_properties,
this->FilePermissions.c_str(), no_dir_permissions,
- this->Configurations,
- this->Component.c_str(),
- this->Rename.c_str());
+ this->Rename.c_str(), 0, indent);
}