[Cmake-commits] [cmake-commits] king committed CMakeSetupDialog.cpp 1.126 1.127

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Mar 5 15:17:09 EST 2009


Update of /cvsroot/CMake/CMake/Source/MFCDialog
In directory public:/mounts/ram/cvs-serv552/Source/MFCDialog

Modified Files:
	CMakeSetupDialog.cpp 
Log Message:
ENH: Overhaul CMake version numbering

This moves the version numbers into an isolated configured header so
that not all of CMake needs to rebuild when the version changes.

Previously we had spaces, dashes and/or the word 'patch' randomly chosen
before the patch number.  Now we always report version numbers in the
traditional format "<major>.<minor>.<patch>[-rc<rc>]".

We still use odd minor numbers for development versions.  Now we also
use the CCYYMMDD date as the patch number of development versions, thus
allowing tests for exact CMake versions.


Index: CMakeSetupDialog.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/CMakeSetupDialog.cpp,v
retrieving revision 1.126
retrieving revision 1.127
diff -C 2 -d -r1.126 -r1.127
*** CMakeSetupDialog.cpp	12 Mar 2008 03:01:41 -0000	1.126
--- CMakeSetupDialog.cpp	5 Mar 2009 20:17:07 -0000	1.127
***************
*** 331,337 ****
    // Set the version number
    char tmp[1024];
!   sprintf(tmp,"CMake %d.%d - %s", cmVersion::GetMajorVersion(),
!           cmVersion::GetMinorVersion(), 
!           cmVersion::GetReleaseVersion().c_str());
    SetDlgItemText(IDC_PROGRESS, "");
    this->SetWindowText(tmp);
--- 331,335 ----
    // Set the version number
    char tmp[1024];
!   sprintf(tmp,"CMake %s", cmVersion::GetCMakeVersion());
    SetDlgItemText(IDC_PROGRESS, "");
    this->SetWindowText(tmp);



More information about the Cmake-commits mailing list