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, next has been updated
       via  8b4d14c735de706995138e830fa015a49193fac3 (commit)
       via  6b4d3ad32a93b4bedbc76c03cbf088cf31138163 (commit)
      from  069f57df5b278b2e65937dbe90a737d987d24e00 (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=8b4d14c735de706995138e830fa015a49193fac3
commit 8b4d14c735de706995138e830fa015a49193fac3
Merge: 069f57d 6b4d3ad
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Thu Jun 16 15:55:43 2011 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Thu Jun 16 15:55:43 2011 -0400

    Merge topic 'mingw-make-use-native-echo-issue-12283' into next
    
    6b4d3ad MinGW: Remove old workaround and use native echo (#12283)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6b4d3ad32a93b4bedbc76c03cbf088cf31138163
commit 6b4d3ad32a93b4bedbc76c03cbf088cf31138163
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Thu Jun 16 15:43:17 2011 -0400
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Thu Jun 16 15:43:17 2011 -0400

    MinGW: Remove old workaround and use native echo (#12283)
    
    The workaround added by commit 7e92f0b4 (Hack to make echo command work
    properly in mingw32-make, 2006-10-05) and updated by commit 69356d8a
    (Juse use cmake -E echo instead of the native echo, 2006-10-13) no
    longer seems necessary with modern mingw32-make.  Furthermore it slows
    performance due to the time spent loading a cmake process instead of
    plain echo.

diff --git a/Source/cmGlobalMinGWMakefileGenerator.cxx 
b/Source/cmGlobalMinGWMakefileGenerator.cxx
index 2f558dc..a9e7798 100644
--- a/Source/cmGlobalMinGWMakefileGenerator.cxx
+++ b/Source/cmGlobalMinGWMakefileGenerator.cxx
@@ -66,18 +66,6 @@ cmLocalGenerator 
*cmGlobalMinGWMakefileGenerator::CreateLocalGenerator()
   lg->SetPassMakeflags(false);
   lg->SetUnixCD(true);
   lg->SetMinGWMake(true);
-
-  // mingw32-make has trouble running code like
-  //
-  //  @echo message with spaces
-  //
-  // If quotes are added
-  //
-  //  @echo "message with spaces"
-  //
-  // it runs but the quotes are displayed.  Instead just use cmake to
-  // echo.
-  lg->SetNativeEchoCommand("@$(CMAKE_COMMAND) -E echo ", false);
   return lg;
 }
 
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx 
b/Source/cmLocalUnixMakefileGenerator3.cxx
index 5c2cda1..6ab5c2a 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -68,8 +68,6 @@ cmLocalUnixMakefileGenerator3::cmLocalUnixMakefileGenerator3()
   this->ColorMakefile = false;
   this->SkipPreprocessedSourceRules = false;
   this->SkipAssemblySourceRules = false;
-  this->NativeEchoCommand = "@echo ";
-  this->NativeEchoWindows = true;
   this->MakeCommandEscapeTargetTwice = false;
   this->IsMakefileGenerator = true;
   this->BorlandMakeCurlyHack = false;
@@ -1235,9 +1233,8 @@ 
cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands,
         if(color_name.empty())
           {
           // Use the native echo command.
-          cmd = this->NativeEchoCommand;
-          cmd += this->EscapeForShell(line.c_str(), false,
-                                      this->NativeEchoWindows);
+          cmd = "@echo ";
+          cmd += this->EscapeForShell(line.c_str(), false, true);
           }
         else
           {
diff --git a/Source/cmLocalUnixMakefileGenerator3.h 
b/Source/cmLocalUnixMakefileGenerator3.h
index 9ff6e5e..0994222 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -127,14 +127,6 @@ public:
   void SetSilentNoColon(bool v)  {this->SilentNoColon = v;}
 
   /**
-   * Set the command to use for native make shell echo.  The value
-   * should include all parts of the command up to the beginning of
-   * the message (including a whitespace separator).
-   */
-  void SetNativeEchoCommand(const char* cmd, bool isWindows)
-    { this->NativeEchoCommand = cmd; this->NativeEchoWindows = isWindows; }
-
-  /**
    * Set the string used to include one makefile into another default
    * is include.
    */
@@ -365,8 +357,6 @@ private:
   std::string IncludeDirective;
   std::string MakeSilentFlag;
   std::string ConfigurationName;
-  std::string NativeEchoCommand;
-  bool NativeEchoWindows;
   bool DefineWindowsNULL;
   bool UnixCD;
   bool PassMakeflags;

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

Summary of changes:
 Source/cmGlobalMinGWMakefileGenerator.cxx |   12 ------------
 Source/cmLocalUnixMakefileGenerator3.cxx  |    7 ++-----
 Source/cmLocalUnixMakefileGenerator3.h    |   10 ----------
 3 files changed, 2 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to