summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-15 17:02:28 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-15 17:02:28 (GMT)
commitfd8e45d4a1c4f6b6dbd5edb99d77244f6cf836ff (patch)
tree930ed09668896b9989e4f341deaca24bc5de1685 /Source/cmake.cxx
parent000bce884dacc774ef50a76714bc1e7d2687a90a (diff)
downloadCMake-fd8e45d4a1c4f6b6dbd5edb99d77244f6cf836ff.zip
CMake-fd8e45d4a1c4f6b6dbd5edb99d77244f6cf836ff.tar.gz
CMake-fd8e45d4a1c4f6b6dbd5edb99d77244f6cf836ff.tar.bz2
ENH: Add simple progress reporting during make
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 189e153..84ecc0f 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -749,6 +749,8 @@ void CMakeCommandUsage(const char* program)
"content to directory 'destination'\n"
<< " compare_files file1 file2 - check if file1 is same as file2\n"
<< " echo [string]... - displays arguments as text\n"
+ << " echo_append [string]... - displays arguments as text but no new"
+ " line\n"
<< " environment - display the current enviroment\n"
<< " remove file1 file2 ... - remove the file(s)\n"
<< " tar [cxt][vfz] file.tar file/dir1 file/dir2 ... - create a tar.\n"
@@ -835,6 +837,19 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
return 0;
}
+ // Echo string no new line
+ else if (args[1] == "echo_append" )
+ {
+ unsigned int cc;
+ const char* space = "";
+ for ( cc = 2; cc < args.size(); cc ++ )
+ {
+ std::cout << space << args[cc];
+ space = " ";
+ }
+ return 0;
+ }
+
#if defined(CMAKE_BUILD_WITH_CMAKE)
// Command to create a symbolic link. Fails on platforms not
// supporting them.