summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-01-02 21:45:30 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-01-02 21:45:30 (GMT)
commitb4e27e979556e89dc6bb6c8517cc71d20a717c69 (patch)
tree190144be530353699997d98a2deb0ccb0637b1a5
parent79d9bd8a59328b5c51dd10e1d49888ebd05a562f (diff)
downloadCMake-b4e27e979556e89dc6bb6c8517cc71d20a717c69.zip
CMake-b4e27e979556e89dc6bb6c8517cc71d20a717c69.tar.gz
CMake-b4e27e979556e89dc6bb6c8517cc71d20a717c69.tar.bz2
prints the relese version
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx4
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx4
-rw-r--r--Source/cmake.cxx3
3 files changed, 6 insertions, 5 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index ab988ff..823b78c 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -63,8 +63,8 @@ void cmCursesLongMessageForm::UpdateStatusBar()
char version[cmCursesMainForm::MAX_WIDTH];
char vertmp[128];
- sprintf(vertmp,"CMake Version %d.%d", cmMakefile::GetMajorVersion(),
- cmMakefile::GetMinorVersion());
+ sprintf(vertmp,"CMake Version %d.%d - %s", cmMakefile::GetMajorVersion(),
+ cmMakefile::GetMinorVersion(),cmMakefile::GetReleaseVersion());
int sideSpace = (width-strlen(vertmp));
for(int i=0; i<sideSpace; i++) { version[i] = ' '; }
sprintf(version+sideSpace, "%s", vertmp);
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index b40753c..6e4bebb 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -471,8 +471,8 @@ void cmCursesMainForm::UpdateStatusBar()
// We want to display this on the right
char version[cmCursesMainForm::MAX_WIDTH];
char vertmp[128];
- sprintf(vertmp,"CMake Version %d.%d", cmMakefile::GetMajorVersion(),
- cmMakefile::GetMinorVersion());
+ sprintf(vertmp,"CMake Version %d.%d - %s", cmMakefile::GetMajorVersion(),
+ cmMakefile::GetMinorVersion(),cmMakefile::GetReleaseVersion());
int sideSpace = (width-strlen(vertmp));
for(i=0; i<sideSpace; i++) { version[i] = ' '; }
sprintf(version+sideSpace, "%s", vertmp);
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 3c40885..6408030 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -65,7 +65,8 @@ cmake::cmake()
void cmake::Usage(const char* program)
{
std::cerr << "cmake version " << cmMakefile::GetMajorVersion()
- << "." << cmMakefile::GetMinorVersion() << "\n";
+ << "." << cmMakefile::GetMinorVersion() << " - "
+ << cmMakefile::GetReleaseVersion() << "\n";
std::cerr << "Usage: " << program << " [srcdir] [options]\n"
<< "Where cmake is run from the directory where you want the object files written. If srcdir is not specified, the current directory is used for both source and object files.\n";
std::cerr << "Options are:\n";