Fix detection of WinCE SDKs with 64bit verion of CMake
Use cmSystemTools::KeyWOW64_32 instead of KeyWOW64_Default to make sure that the correct part of the registry is read.
This commit is contained in:
parent
40a4302414
commit
3873d29d9e
|
@ -20,8 +20,12 @@ int cmVisualStudioWCEPlatformParser::ParseVersion(const char* version)
|
||||||
const std::string vckey = registryBase + "\\Setup\\VC;ProductDir";
|
const std::string vckey = registryBase + "\\Setup\\VC;ProductDir";
|
||||||
const std::string vskey = registryBase + "\\Setup\\VS;ProductDir";
|
const std::string vskey = registryBase + "\\Setup\\VS;ProductDir";
|
||||||
|
|
||||||
if(!cmSystemTools::ReadRegistryValue(vckey.c_str(), this->VcInstallDir) ||
|
if(!cmSystemTools::ReadRegistryValue(vckey.c_str(),
|
||||||
!cmSystemTools::ReadRegistryValue(vskey.c_str(), this->VsInstallDir))
|
this->VcInstallDir,
|
||||||
|
cmSystemTools::KeyWOW64_32) ||
|
||||||
|
!cmSystemTools::ReadRegistryValue(vskey.c_str(),
|
||||||
|
this->VsInstallDir,
|
||||||
|
cmSystemTools::KeyWOW64_32))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue