summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-12-14 14:30:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-12-14 14:30:28 (GMT)
commitc34b4497f8d595390d8e5a9d216de9ddc95a47eb (patch)
tree51662f8532e04391c56d3fcd245ec2069e93a1bd /Source/cmLocalGenerator.cxx
parent2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff)
downloadCMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.zip
CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz
CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.bz2
cmTarget: add std::string overloads
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e7494ee..f5c62f8 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2531,7 +2531,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
}
target->Target->SetProperty("COMPILE_PDB_OUTPUT_DIRECTORY",
- target_compile_pdb_dir.c_str());
+ target_compile_pdb_dir);
}
std::string pchSourceObj =
@@ -2540,8 +2540,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
// Link to the pch object file
target->Target->AppendProperty(
"LINK_FLAGS",
- cmStrCat(" ", this->ConvertToOutputFormat(pchSourceObj, SHELL))
- .c_str(),
+ cmStrCat(" ", this->ConvertToOutputFormat(pchSourceObj, SHELL)),
true);
}
} else {