ENH: unify version stuff, get rid of it out of cmake and cmMakefile and only use cmVersion

This commit is contained in:
Bill Hoffman
2006-11-29 15:59:16 -05:00
parent 46f8ed0648
commit ccb77b65c6
11 changed files with 34 additions and 76 deletions

View File

@@ -7,6 +7,7 @@
#undef DEBUG
#include "CMakeSetup.h"
#include "MakeHelp.h"
#include "cmVersion.h"
#include "PathDialog.h"
#include "CMakeSetupDialog.h"
#include "CMakeCommandLineInfo.h"
@@ -323,8 +324,9 @@ BOOL CMakeSetupDialog::OnInitDialog()
// Set the version number
char tmp[1024];
sprintf(tmp,"CMake %d.%d - %s", cmake::GetMajorVersion(),
cmake::GetMinorVersion(), cmake::GetReleaseVersion());
sprintf(tmp,"CMake %d.%d - %s", cmVersion::GetMajorVersion(),
cmVersion::GetMinorVersion(),
cmVersion::GetReleaseVersion().c_str());
SetDlgItemText(IDC_PROGRESS, "");
this->SetWindowText(tmp);
this->UpdateData(FALSE);