summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-25 20:13:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-25 20:13:10 (GMT)
commita60cd3d3c6b214a2c1271321c726fd21000a0cdb (patch)
tree41cefc36e7ade6c2a3cbcad036a568a7c42ff32c /Source/cmGeneratorTarget.cxx
parentc34968a9aa12221f54973a56d4e98940cff676a5 (diff)
downloadCMake-a60cd3d3c6b214a2c1271321c726fd21000a0cdb.zip
CMake-a60cd3d3c6b214a2c1271321c726fd21000a0cdb.tar.gz
CMake-a60cd3d3c6b214a2c1271321c726fd21000a0cdb.tar.bz2
cmGeneratorTarget: Use the output directory to order cmTargets.
The output directory must be unique, but the source directory of an add_subdirectory call may be re-used.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 90cca1b..5a535c7 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -698,8 +698,8 @@ bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
int nameResult = strcmp(t1->GetName(), t2->GetName());
if (nameResult == 0)
{
- return strcmp(t1->GetMakefile()->GetStartDirectory(),
- t2->GetMakefile()->GetStartDirectory()) < 0;
+ return strcmp(t1->GetMakefile()->GetStartOutputDirectory(),
+ t2->GetMakefile()->GetStartOutputDirectory()) < 0;
}
return nameResult < 0;
}