summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-11-10 14:29:27 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-11-10 14:29:27 (GMT)
commit64843b17375c6ffd8b46ddaa9272e3ad27b6adec (patch)
tree2a37669494607d60ba0216c9123e66dddb60c321 /Source/cmVisualStudioGeneratorOptions.cxx
parenta9c09599002baa27bdf4f98664829a92ba529240 (diff)
downloadCMake-64843b17375c6ffd8b46ddaa9272e3ad27b6adec.zip
CMake-64843b17375c6ffd8b46ddaa9272e3ad27b6adec.tar.gz
CMake-64843b17375c6ffd8b46ddaa9272e3ad27b6adec.tar.bz2
cmVisualStudio10TargetGenerator: use std::string for tag
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 1139aa9..18c19b7 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -431,7 +431,7 @@ void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
if (this->Defines.empty()) {
return;
}
- const char* tag = "PreprocessorDefinitions";
+ std::string tag = "PreprocessorDefinitions";
if (lang == "CUDA") {
tag = "Defines";
}
@@ -473,7 +473,7 @@ void cmVisualStudioGeneratorOptions::OutputAdditionalIncludeDirectories(
return;
}
- const char* tag = "AdditionalIncludeDirectories";
+ std::string tag = "AdditionalIncludeDirectories";
if (lang == "CUDA") {
tag = "Include";
} else if (lang == "ASM_MASM" || lang == "ASM_NASM") {
@@ -528,6 +528,6 @@ void cmVisualStudioGeneratorOptions::OutputFlagMap(std::ostream& fout,
sep = ";";
}
- this->OutputFlag(fout, indent, m.first.c_str(), oss.str());
+ this->OutputFlag(fout, indent, m.first, oss.str());
}
}