summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-05-17 17:34:29 (GMT)
committerBrad King <brad.king@kitware.com>2010-05-17 17:34:29 (GMT)
commit3ebb41d58ae4d791f39a2f65d7dbe5fc2d3ddff3 (patch)
tree746999c765846c5978e8a5be682c561c0db6cda6 /Source/cmMakefile.cxx
parent0559c4e04e002555dd09a57b41e4d83645a82f37 (diff)
parentc70fcf64aba77443bdb8bef3a62886c29a112df2 (diff)
downloadCMake-3ebb41d58ae4d791f39a2f65d7dbe5fc2d3ddff3.zip
CMake-3ebb41d58ae4d791f39a2f65d7dbe5fc2d3ddff3.tar.gz
CMake-3ebb41d58ae4d791f39a2f65d7dbe5fc2d3ddff3.tar.bz2
Merge branch 'version'
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index e3d230e..8eece6b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2359,11 +2359,9 @@ void cmMakefile::AddDefaultDefinitions()
this->AddDefinition("CMAKE_MAJOR_VERSION", temp);
sprintf(temp, "%d", cmVersion::GetPatchVersion());
this->AddDefinition("CMAKE_PATCH_VERSION", temp);
- sprintf(temp, "%u.%u.%u",
- cmVersion::GetMajorVersion(),
- cmVersion::GetMinorVersion(),
- cmVersion::GetPatchVersion());
- this->AddDefinition("CMAKE_VERSION", temp);
+ sprintf(temp, "%d", cmVersion::GetTweakVersion());
+ this->AddDefinition("CMAKE_TWEAK_VERSION", temp);
+ this->AddDefinition("CMAKE_VERSION", cmVersion::GetCMakeVersion());
this->AddDefinition("CMAKE_FILES_DIRECTORY",
cmake::GetCMakeFilesDirectory());