diff options
author | Brad King <brad.king@kitware.com> | 2006-10-13 14:22:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-13 14:22:45 (GMT) |
commit | 69356d8a7a73cc1a6842eef7fce552610e901dfe (patch) | |
tree | 9d0599f9eca8049160cadba0e1d48440f4f38c2c /Source | |
parent | 023041362d714212d3dcdd39dddd1dd6b83c2ff7 (diff) | |
download | CMake-69356d8a7a73cc1a6842eef7fce552610e901dfe.zip CMake-69356d8a7a73cc1a6842eef7fce552610e901dfe.tar.gz CMake-69356d8a7a73cc1a6842eef7fce552610e901dfe.tar.bz2 |
BUG: Juse use cmake -E echo instead of the native echo on MinGW makefiles. The echo; hack did not work when running from ctest.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalMinGWMakefileGenerator.cxx | 10 | ||||
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 4 | ||||
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.h | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/Source/cmGlobalMinGWMakefileGenerator.cxx b/Source/cmGlobalMinGWMakefileGenerator.cxx index c024f6f..30cb948 100644 --- a/Source/cmGlobalMinGWMakefileGenerator.cxx +++ b/Source/cmGlobalMinGWMakefileGenerator.cxx @@ -70,13 +70,9 @@ cmLocalGenerator *cmGlobalMinGWMakefileGenerator::CreateLocalGenerator() // // @echo "message with spaces" // - // it runs but the quotes are displayed. Instead we can separate - // with a semicolon - // - // @echo;message with spaces - // - // to hack around the problem. - lg->SetNativeEchoCommand("@echo;"); + // 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 34fbc26..059de85 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -51,6 +51,7 @@ cmLocalUnixMakefileGenerator3::cmLocalUnixMakefileGenerator3() this->SkipPreprocessedSourceRules = false; this->SkipAssemblySourceRules = false; this->NativeEchoCommand = "@echo "; + this->NativeEchoWindows = true; } //---------------------------------------------------------------------------- @@ -1046,7 +1047,8 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands, { // Use the native echo command. cmd = this->NativeEchoCommand; - cmd += this->EscapeForShell(line.c_str(), false, true); + cmd += this->EscapeForShell(line.c_str(), false, + this->NativeEchoWindows); } else { diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h index e79065d..5b9d7fd 100644 --- a/Source/cmLocalUnixMakefileGenerator3.h +++ b/Source/cmLocalUnixMakefileGenerator3.h @@ -135,8 +135,8 @@ public: * should include all parts of the command up to the beginning of * the message (including a whitespace separator). */ - void SetNativeEchoCommand(const char* cmd) - { this->NativeEchoCommand = cmd; } + void SetNativeEchoCommand(const char* cmd, bool isWindows) + { this->NativeEchoCommand = cmd; this->NativeEchoWindows = isWindows; } /** * Set the string used to include one makefile into another default @@ -341,6 +341,7 @@ private: std::string LibraryOutputPath; std::string ConfigurationName; std::string NativeEchoCommand; + bool NativeEchoWindows; bool DefineWindowsNULL; bool UnixCD; bool PassMakeflags; |