summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-21 17:48:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:19:52 (GMT)
commitc2c239e607549d6513d95c3e919b4f509733bc87 (patch)
tree1fb0c316cf903bd15945fb464dc7617d73ff335d /Source/cmGlobalGenerator.cxx
parenta8c0fbcc194bca6986492278e705ff301f283378 (diff)
downloadCMake-c2c239e607549d6513d95c3e919b4f509733bc87.zip
CMake-c2c239e607549d6513d95c3e919b4f509733bc87.tar.gz
CMake-c2c239e607549d6513d95c3e919b4f509733bc87.tar.bz2
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 7e9b599..13efc4c 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)
{