ENH: Provide access to CMAKE_PATCH_VERSION in CMake code.
This commit is contained in:
parent
9d02ac676b
commit
c4dcfd2ed0
|
@ -1869,6 +1869,8 @@ void cmMakefile::AddDefaultDefinitions()
|
||||||
this->AddDefinition("CMAKE_MINOR_VERSION", temp);
|
this->AddDefinition("CMAKE_MINOR_VERSION", temp);
|
||||||
sprintf(temp, "%d", cmMakefile::GetMajorVersion());
|
sprintf(temp, "%d", cmMakefile::GetMajorVersion());
|
||||||
this->AddDefinition("CMAKE_MAJOR_VERSION", temp);
|
this->AddDefinition("CMAKE_MAJOR_VERSION", temp);
|
||||||
|
sprintf(temp, "%d", cmMakefile::GetPatchVersion());
|
||||||
|
this->AddDefinition("CMAKE_PATCH_VERSION", temp);
|
||||||
|
|
||||||
this->AddDefinition("CMAKE_FILES_DIRECTORY",
|
this->AddDefinition("CMAKE_FILES_DIRECTORY",
|
||||||
cmake::GetCMakeFilesDirectory());
|
cmake::GetCMakeFilesDirectory());
|
||||||
|
|
Loading…
Reference in New Issue