diff options
author | Brad King <brad.king@kitware.com> | 2006-02-10 16:41:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-10 16:41:52 (GMT) |
commit | b403ad61e246b4951b67cb689c8ccc7afd7e72b3 (patch) | |
tree | d4692fe071dc4a924b19076477052f95c8ec074c | |
parent | 62ca4d34c24a94884924ccf261fd5906d9f99f93 (diff) | |
download | CMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.zip CMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.tar.gz CMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.tar.bz2 |
BUG: Fixed echo command to not print trailing space.
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index da39732..8313750 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -800,9 +800,11 @@ int cmake::CMakeCommand(std::vector<std::string>& args) else if (args[1] == "echo" ) { unsigned int cc; + const char* space = ""; for ( cc = 2; cc < args.size(); cc ++ ) { - std::cout << args[cc] << " "; + std::cout << space << args[cc]; + space = " "; } std::cout << std::endl; return 0; |