summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-24 13:43:35 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-27 19:48:57 (GMT)
commit50fbfee3a02e7099a3909d81597f4b8047847ece (patch)
treec8f6053448e3428b1d9f32c0c1141c41cd1d9f59 /Source/cmGeneratorTarget.cxx
parente33c6c357b61ed0cc5b9f7c01e4ea04deca26b39 (diff)
downloadCMake-50fbfee3a02e7099a3909d81597f4b8047847ece.zip
CMake-50fbfee3a02e7099a3909d81597f4b8047847ece.tar.gz
CMake-50fbfee3a02e7099a3909d81597f4b8047847ece.tar.bz2
cmLocalGenerator: return directories as const std::string&
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 1548374..39f0c9e 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3565,8 +3565,9 @@ bool cmGeneratorTarget::StrictTargetComparison::operator()(
{
int nameResult = strcmp(t1->GetName().c_str(), t2->GetName().c_str());
if (nameResult == 0) {
- return strcmp(t1->GetLocalGenerator()->GetCurrentBinaryDirectory(),
- t2->GetLocalGenerator()->GetCurrentBinaryDirectory()) < 0;
+ return strcmp(
+ t1->GetLocalGenerator()->GetCurrentBinaryDirectory().c_str(),
+ t2->GetLocalGenerator()->GetCurrentBinaryDirectory().c_str()) < 0;
}
return nameResult < 0;
}