summaryrefslogtreecommitdiff
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-21 19:48:47 +0200
committerStephen Kelly <steveire@gmail.com>2015-10-24 09:19:52 +0200
commitc2c239e607549d6513d95c3e919b4f509733bc87 (patch)
tree1fb0c316cf903bd15945fb464dc7617d73ff335d /Source/cmGlobalGenerator.cxx
parenta8c0fbcc194bca6986492278e705ff301f283378 (diff)
downloadcmake-c2c239e607549d6513d95c3e919b4f509733bc87.tar.gz
cmGlobalGenerator: Move GeneratorTargetsType to usage site.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 7e9b5995a7..13efc4cfe7 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -48,6 +48,18 @@
#include <assert.h>
+bool cmTarget::StrictTargetComparison::operator()(cmTarget const* t1,
+ cmTarget const* t2) const
+{
+ int nameResult = strcmp(t1->GetName().c_str(), t2->GetName().c_str());
+ if (nameResult == 0)
+ {
+ return strcmp(t1->GetMakefile()->GetCurrentBinaryDirectory(),
+ t2->GetMakefile()->GetCurrentBinaryDirectory()) < 0;
+ }
+ return nameResult < 0;
+}
+
cmGlobalGenerator::cmGlobalGenerator(cmake* cm)
: CMakeInstance(cm)
{