summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.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/cmTarget.cxx
parent2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff)
downloadCMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.zip
CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz
CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.bz2
cmTarget: add std::string overloads
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index b9bf7a5..b0f9c65 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -949,9 +949,8 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf, std::string const& lib,
(isNonImportedTarget && llt != GENERAL_LibraryType)
? targetNameGenex(libRef)
: libRef;
- this->AppendProperty(
- "LINK_LIBRARIES",
- this->GetDebugGeneratorExpressions(libName, llt).c_str());
+ this->AppendProperty("LINK_LIBRARIES",
+ this->GetDebugGeneratorExpressions(libName, llt));
}
if (cmGeneratorExpression::Find(lib) != std::string::npos || lib != libRef ||
@@ -1285,9 +1284,9 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
impl->Properties.SetProperty(prop, reusedFrom.c_str());
- reusedTarget->SetProperty("COMPILE_PDB_NAME", reusedFrom.c_str());
+ reusedTarget->SetProperty("COMPILE_PDB_NAME", reusedFrom);
reusedTarget->SetProperty("COMPILE_PDB_OUTPUT_DIRECTORY",
- cmStrCat(reusedFrom, ".dir/").c_str());
+ cmStrCat(reusedFrom, ".dir/"));
this->SetProperty("COMPILE_PDB_NAME",
reusedTarget->GetProperty("COMPILE_PDB_NAME"));
@@ -1422,7 +1421,7 @@ void cmTarget::AppendBuildInterfaceIncludes()
dirs += impl->Makefile->GetCurrentSourceDirectory();
if (!dirs.empty()) {
this->AppendProperty("INTERFACE_INCLUDE_DIRECTORIES",
- ("$<BUILD_INTERFACE:" + dirs + ">").c_str());
+ ("$<BUILD_INTERFACE:" + dirs + ">"));
}
}
}