summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 02dc39b..e43afc0 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -730,14 +730,14 @@ cmGlobalVisualStudio7Generator::TargetCompare
::operator()(cmTarget const* l, cmTarget const* r)
{
// Make sure ALL_BUILD is first so it is the default active project.
- if(strcmp(l->GetName(), "ALL_BUILD") == 0)
- {
- return true;
- }
if(strcmp(r->GetName(), "ALL_BUILD") == 0)
{
return false;
}
+ if(strcmp(l->GetName(), "ALL_BUILD") == 0)
+ {
+ return true;
+ }
return strcmp(l->GetName(), r->GetName()) < 0;
}