summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 22:17:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 22:17:16 (GMT)
commit33170bc3716cc0432491c43b2652219f86c22f36 (patch)
tree27f0d83b68a18b692cc24806722d628472127ade /Source
parent2915f24274abbea64b7f9806d787912a125f97d8 (diff)
downloadCMake-33170bc3716cc0432491c43b2652219f86c22f36.zip
CMake-33170bc3716cc0432491c43b2652219f86c22f36.tar.gz
CMake-33170bc3716cc0432491c43b2652219f86c22f36.tar.bz2
ENH: there can be only one version
Diffstat (limited to 'Source')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx5
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx5
2 files changed, 6 insertions, 4 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 3c4f5e9..04a5d09 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -17,6 +17,7 @@
#include "../cmCacheManager.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
+#include "../cmVersion.h"
#include "cmCursesLongMessageForm.h"
#include "cmCursesMainForm.h"
@@ -79,8 +80,8 @@ void cmCursesLongMessageForm::UpdateStatusBar()
char version[cmCursesMainForm::MAX_WIDTH];
char vertmp[128];
- sprintf(vertmp,"CMake Version %d.%d - %s", cmake::GetMajorVersion(),
- cmake::GetMinorVersion(),cmake::GetReleaseVersion());
+ sprintf(vertmp,"CMake Version %d.%d - %s", cmVersion::GetMajorVersion(),
+ cmVersion::GetMinorVersion(),cmVersion::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 3443540..3258880 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -16,6 +16,7 @@
=========================================================================*/
#include "../cmCacheManager.h"
#include "../cmSystemTools.h"
+#include "../cmVersion.h"
#include "../cmake.h"
#include "cmCursesMainForm.h"
#include "cmCursesStringWidget.h"
@@ -579,8 +580,8 @@ void cmCursesMainForm::UpdateStatusBar(const char* message)
// We want to display this on the right
char version[cmCursesMainForm::MAX_WIDTH];
char vertmp[128];
- sprintf(vertmp,"CMake Version %d.%d - %s", cmake::GetMajorVersion(),
- cmake::GetMinorVersion(),cmake::GetReleaseVersion());
+ sprintf(vertmp,"CMake Version %d.%d - %s", cmVersion::GetMajorVersion(),
+ cmVersion::GetMinorVersion(),cmVersion::GetReleaseVersion().c_str());
int sideSpace = (width-strlen(vertmp));
for(i=0; i<sideSpace; i++) { version[i] = ' '; }
sprintf(version+sideSpace, "%s", vertmp);