summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-04-25 15:01:37 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-04-25 15:01:37 (GMT)
commit7d407b438ddc9470687f0fe30d1cef3749dbd8c5 (patch)
tree1065c7658cbc180e62726127c0055f32a695ed6c /Source/cmVisualStudioGeneratorOptions.cxx
parent83e3b1497d4889f8dbb7238a270296377035e40b (diff)
downloadCMake-7d407b438ddc9470687f0fe30d1cef3749dbd8c5.zip
CMake-7d407b438ddc9470687f0fe30d1cef3749dbd8c5.tar.gz
CMake-7d407b438ddc9470687f0fe30d1cef3749dbd8c5.tar.bz2
cmVisualStudioGeneratorOptions: specify indentation with integer
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 5cf9a08..3ec3355 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -422,7 +422,7 @@ const std::string& cmVisualStudioGeneratorOptions::GetConfiguration() const
}
void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
- std::ostream& fout, const char* prefix, const std::string& lang)
+ std::ostream& fout, int indent, const std::string& lang)
{
if (this->Defines.empty()) {
return;
@@ -460,11 +460,11 @@ void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
oss << ";%(" << tag << ")";
}
- this->OutputFlag(fout, prefix, tag, oss.str());
+ this->OutputFlag(fout, indent, tag, oss.str());
}
void cmVisualStudioGeneratorOptions::OutputAdditionalIncludeDirectories(
- std::ostream& fout, const char* prefix, const std::string& lang)
+ std::ostream& fout, int indent, const std::string& lang)
{
if (this->Includes.empty()) {
return;
@@ -508,11 +508,11 @@ void cmVisualStudioGeneratorOptions::OutputAdditionalIncludeDirectories(
oss << sep << "%(" << tag << ")";
}
- this->OutputFlag(fout, prefix, tag, oss.str());
+ this->OutputFlag(fout, indent, tag, oss.str());
}
void cmVisualStudioGeneratorOptions::OutputFlagMap(std::ostream& fout,
- const char* indent)
+ int indent)
{
for (auto const& m : this->FlagMap) {
std::ostringstream oss;