VS: Fix ApplicationTypeRevision in builtin check projects
Do not use the entire `CMAKE_SYSTEM_VERSION`, but rather the first two components only. Fixes: #19275
This commit is contained in:
parent
639e14def6
commit
9c07cefee5
@ -276,8 +276,8 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
|
||||
else()
|
||||
set(id_system "")
|
||||
endif()
|
||||
if(id_system AND CMAKE_SYSTEM_VERSION)
|
||||
set(id_system_version "<ApplicationTypeRevision>${CMAKE_SYSTEM_VERSION}</ApplicationTypeRevision>")
|
||||
if(id_system AND CMAKE_SYSTEM_VERSION MATCHES "^([0-9]+\\.[0-9]+)")
|
||||
set(id_system_version "<ApplicationTypeRevision>${CMAKE_MATCH_1}</ApplicationTypeRevision>")
|
||||
else()
|
||||
set(id_system_version "")
|
||||
endif()
|
||||
|
@ -784,11 +784,11 @@ bool cmGlobalVisualStudio10Generator::FindVCTargetsPath(cmMakefile* mf)
|
||||
if (this->GetSystemName() == "WindowsPhone") {
|
||||
cmXMLElement(epg, "ApplicationType").Content("Windows Phone");
|
||||
cmXMLElement(epg, "ApplicationTypeRevision")
|
||||
.Content(this->GetSystemVersion());
|
||||
.Content(this->GetApplicationTypeRevision());
|
||||
} else if (this->GetSystemName() == "WindowsStore") {
|
||||
cmXMLElement(epg, "ApplicationType").Content("Windows Store");
|
||||
cmXMLElement(epg, "ApplicationTypeRevision")
|
||||
.Content(this->GetSystemVersion());
|
||||
.Content(this->GetApplicationTypeRevision());
|
||||
}
|
||||
if (!this->WindowsTargetPlatformVersion.empty()) {
|
||||
cmXMLElement(epg, "WindowsTargetPlatformVersion")
|
||||
|
Loading…
Reference in New Issue
Block a user