diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-21 17:48:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-24 07:19:52 (GMT) |
commit | c2c239e607549d6513d95c3e919b4f509733bc87 (patch) | |
tree | 1fb0c316cf903bd15945fb464dc7617d73ff335d /Source/cmGlobalGenerator.cxx | |
parent | a8c0fbcc194bca6986492278e705ff301f283378 (diff) | |
download | CMake-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.cxx | 12 |
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) { |