summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallScriptGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-08-22 09:30:19 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-08-22 10:06:58 (GMT)
commit33055c405ed3b0e1df52c186f0d8a3e878aa88a8 (patch)
tree14f5a4fb37a84f5748584329e454502d524fe967 /Source/cmInstallScriptGenerator.cxx
parent7324eb896eb7337aaec2baf44d11d419a9d87b30 (diff)
downloadCMake-33055c405ed3b0e1df52c186f0d8a3e878aa88a8.zip
CMake-33055c405ed3b0e1df52c186f0d8a3e878aa88a8.tar.gz
CMake-33055c405ed3b0e1df52c186f0d8a3e878aa88a8.tar.bz2
Generate modern-style cmake code.
The commits 9db31162 (Remove CMake-language block-end command arguments, 2012-08-13) and 77543bde (Convert CMake-language commands to lower case, 2012-08-13) changed most cmake code to use lowercase commands and no parameters in termination commands. However, those changes excluded cmake code generated in c++ by cmake. Make a similar style change to code generated by cmake.
Diffstat (limited to 'Source/cmInstallScriptGenerator.cxx')
-rw-r--r--Source/cmInstallScriptGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmInstallScriptGenerator.cxx b/Source/cmInstallScriptGenerator.cxx
index bcfbe63..1ecf021 100644
--- a/Source/cmInstallScriptGenerator.cxx
+++ b/Source/cmInstallScriptGenerator.cxx
@@ -32,7 +32,7 @@ void cmInstallScriptGenerator::GenerateScript(std::ostream& os)
Indent indent;
std::string component_test =
this->CreateComponentTest(this->Component.c_str());
- os << indent << "IF(" << component_test << ")\n";
+ os << indent << "if(" << component_test << ")\n";
if(this->Code)
{
@@ -40,8 +40,8 @@ void cmInstallScriptGenerator::GenerateScript(std::ostream& os)
}
else
{
- os << indent.Next() << "INCLUDE(\"" << this->Script << "\")\n";
+ os << indent.Next() << "include(\"" << this->Script << "\")\n";
}
- os << indent << "ENDIF(" << component_test << ")\n\n";
+ os << indent << "endif()\n\n";
}