diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2002-01-14 21:02:05 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2002-01-14 21:02:05 (GMT) |
commit | c88408141bcbaa5334818de13eaf6c4855c29346 (patch) | |
tree | 1e208529a5bdf7bc33ac89cbe37269093cc98ba5 | |
parent | 5adda3463ac039c41da61ade37fa2e8ba6e1f7c7 (diff) | |
download | CMake-c88408141bcbaa5334818de13eaf6c4855c29346.zip CMake-c88408141bcbaa5334818de13eaf6c4855c29346.tar.gz CMake-c88408141bcbaa5334818de13eaf6c4855c29346.tar.bz2 |
Quote echo
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 071f943..a41e00c 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1875,7 +1875,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1886,7 +1886,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1897,7 +1897,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1908,7 +1908,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } |