[Cmake-commits] [cmake-commits] king committed cmGlobalVisualStudio7Generator.cxx 1.103 1.104
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jan 21 17:06:59 EST 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv5569/Source
Modified Files:
cmGlobalVisualStudio7Generator.cxx
Log Message:
ENH: Make ALL_BUILD always the default project
This teaches the VS IDE generators to write ALL_BUILD into solution
files first so that it is always the default active project. Previously
it was first only if no target name sorted lexicographically earlier.
See issue #8172.
Index: cmGlobalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalVisualStudio7Generator.cxx,v
retrieving revision 1.103
retrieving revision 1.104
diff -C 2 -d -r1.103 -r1.104
*** cmGlobalVisualStudio7Generator.cxx 21 Jan 2009 21:39:42 -0000 1.103
--- cmGlobalVisualStudio7Generator.cxx 21 Jan 2009 22:06:57 -0000 1.104
***************
*** 730,733 ****
--- 730,742 ----
::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;
+ }
return strcmp(l->GetName(), r->GetName()) < 0;
}
More information about the Cmake-commits
mailing list