ENH: Provide access to CMAKE_PATCH_VERSION in CMake code.

This commit is contained in:
Brad King 2006-06-15 16:42:42 -04:00
parent 9d02ac676b
commit c4dcfd2ed0
1 changed files with 2 additions and 0 deletions

View File

@ -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());