diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-21 17:51:50 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-24 07:19:53 (GMT) |
commit | f528e6bcb9b2e181dcd7ee0c1cc327b6cad84ad5 (patch) | |
tree | 60cb17dfb4aa34837b7009233630bbe978506b8f /Source/cmGeneratorTarget.cxx | |
parent | a6b7eb5bc8c304dab2102689eb09ec85c1e7f6be (diff) | |
download | CMake-f528e6bcb9b2e181dcd7ee0c1cc327b6cad84ad5.zip CMake-f528e6bcb9b2e181dcd7ee0c1cc327b6cad84ad5.tar.gz CMake-f528e6bcb9b2e181dcd7ee0c1cc327b6cad84ad5.tar.bz2 |
Makefiles: Port progress marks to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 3f600b2..fe6b446 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -3607,6 +3607,18 @@ std::string cmGeneratorTarget::GetPDBName(const std::string& config) const return prefix+base+".pdb"; } +bool cmGeneratorTarget::StrictTargetComparison::operator()( + cmGeneratorTarget const* t1, cmGeneratorTarget const* t2) const +{ + int nameResult = strcmp(t1->GetName().c_str(), t2->GetName().c_str()); + if (nameResult == 0) + { + return strcmp(t1->GetLocalGenerator()->GetCurrentBinaryDirectory(), + t2->GetLocalGenerator()->GetCurrentBinaryDirectory()) < 0; + } + return nameResult < 0; +} + //---------------------------------------------------------------------------- struct cmGeneratorTarget::SourceFileFlags cmGeneratorTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const |