diff options
author | Brad King <brad.king@kitware.com> | 2006-06-15 20:42:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-15 20:42:42 (GMT) |
commit | c4dcfd2ed07babb2573d5b79741e9343988c12c1 (patch) | |
tree | d1059eb8c3c2a055ca24dcfe2ef1b53a34a30337 /Source/cmMakefile.cxx | |
parent | 9d02ac676b8fff21c5c8b2d6e76efb647a5446d6 (diff) | |
download | CMake-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.cxx | 2 |
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()); |