[Cmake-commits] CMake branch, master, updated. 7220df021be73cba540c72fcac86e59b84797375

cmake-commits at cmake.org cmake-commits at cmake.org
Fri May 14 17:04:24 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  7220df021be73cba540c72fcac86e59b84797375 (commit)
      from  8dd99db6865fafb737ff2d84bcca3713f0f49b66 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7220df021be73cba540c72fcac86e59b84797375
commit 7220df021be73cba540c72fcac86e59b84797375
Author: David Cole <david.cole at kitware.com>
Date:   Wed May 5 14:30:21 2010 -0400

    Fix generation of .filters files for Visual Studio 2010 generator.
    
    Only generate .filters files if they are different than the last time
    they were generated. This should prevent the unnecessary reloads
    being triggered with Visual Studio 2010 builds.

diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 4a8e161..9f64473 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -441,6 +441,7 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
   path += this->Name;
   path += ".vcxproj.filters";
   cmGeneratedFileStream fout(path.c_str());
+  fout.SetCopyIfDifferent(true);
   char magic[] = {0xEF,0xBB, 0xBF};
   fout.write(magic, 3);
   cmGeneratedFileStream* save = this->BuildFileStream;
@@ -484,9 +485,14 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
   this->WriteString("</Project>\n", 0);
   // restore stream pointer
   this->BuildFileStream = save;
+
+  if (fout.Close())
+    {
+    this->GlobalGenerator->FileReplacedDuringGenerate(path);
+    }
 }
 
-void 
+void
 cmVisualStudio10TargetGenerator::
 WriteGroupSources(const char* name,
                   std::vector<cmSourceFile*> const& sources,

-----------------------------------------------------------------------

Summary of changes:
 Source/cmVisualStudio10TargetGenerator.cxx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list