summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-07-02 15:02:52 (GMT)
committerBrad King <brad.king@kitware.com>2007-07-02 15:02:52 (GMT)
commitc83ae4673d1bdf72bf27eb6e60c877b1156a672a (patch)
tree53d89845aec8f5fbf25bf45317bed251658cf128 /Source/cmInstallGenerator.cxx
parentc8b263c674d9c75232b4317b57259b1bbff88016 (diff)
downloadCMake-c83ae4673d1bdf72bf27eb6e60c877b1156a672a.zip
CMake-c83ae4673d1bdf72bf27eb6e60c877b1156a672a.tar.gz
CMake-c83ae4673d1bdf72bf27eb6e60c877b1156a672a.tar.bz2
ENH: Improved indentation of generated cmake_install.cmake code.
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r--Source/cmInstallGenerator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx
index bf9d228..9cb4a07 100644
--- a/Source/cmInstallGenerator.cxx
+++ b/Source/cmInstallGenerator.cxx
@@ -60,7 +60,8 @@ void cmInstallGenerator
std::vector<std::string> const& configurations,
const char* component /* = 0 */,
const char* rename /* = 0 */,
- const char* literal_args /* = 0 */
+ const char* literal_args /* = 0 */,
+ cmInstallGeneratorIndent const& indent
)
{
// Use the FILE command to install the file.
@@ -76,6 +77,7 @@ void cmInstallGenerator
case cmTarget::INSTALL_FILES:
default: stype = "FILE"; break;
}
+ os << indent;
os << "FILE(INSTALL DESTINATION \"" << dest << "\" TYPE " << stype.c_str();
if(optional)
{
@@ -120,9 +122,9 @@ void cmInstallGenerator
for(std::vector<std::string>::const_iterator fi = files.begin();
fi != files.end(); ++fi)
{
- os << "\n \"" << *fi << "\"";
+ os << "\n" << indent << " \"" << *fi << "\"";
}
- os << "\n ";
+ os << "\n" << indent << " ";
if(!(literal_args && *literal_args))
{
os << " ";