summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-06-15 20:42:42 (GMT)
committerBrad King <brad.king@kitware.com>2006-06-15 20:42:42 (GMT)
commitc4dcfd2ed07babb2573d5b79741e9343988c12c1 (patch)
treed1059eb8c3c2a055ca24dcfe2ef1b53a34a30337 /Source/cmMakefile.cxx
parent9d02ac676b8fff21c5c8b2d6e76efb647a5446d6 (diff)
downloadCMake-c4dcfd2ed07babb2573d5b79741e9343988c12c1.zip
CMake-c4dcfd2ed07babb2573d5b79741e9343988c12c1.tar.gz
CMake-c4dcfd2ed07babb2573d5b79741e9343988c12c1.tar.bz2
ENH: Provide access to CMAKE_PATCH_VERSION in CMake code.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 92215b9..1c8e72a 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1869,6 +1869,8 @@ void cmMakefile::AddDefaultDefinitions()
this->AddDefinition("CMAKE_MINOR_VERSION", temp);
sprintf(temp, "%d", cmMakefile::GetMajorVersion());
this->AddDefinition("CMAKE_MAJOR_VERSION", temp);
+ sprintf(temp, "%d", cmMakefile::GetPatchVersion());
+ this->AddDefinition("CMAKE_PATCH_VERSION", temp);
this->AddDefinition("CMAKE_FILES_DIRECTORY",
cmake::GetCMakeFilesDirectory());