diff options
author | Brad King <brad.king@kitware.com> | 2010-12-01 17:48:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-01 17:48:32 (GMT) |
commit | fb97ba629348cdc93ac26ce7c8ed8804a7a9fae3 (patch) | |
tree | 798dbde696e47d0da3f258f4042b1cdff79056e9 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | 5cf99388c3cf48e89c576b6f93af96fb4111be03 (diff) | |
download | CMake-fb97ba629348cdc93ac26ce7c8ed8804a7a9fae3.zip CMake-fb97ba629348cdc93ac26ce7c8ed8804a7a9fae3.tar.gz CMake-fb97ba629348cdc93ac26ce7c8ed8804a7a9fae3.tar.bz2 |
Enable 64-bit tools with VS 2010 Express (#9981, #10722)
The Express Edition does not come with 64-bit tools, but one can install
the "Microsoft Windows SDK v7.1" to get them. Detect this case and
check for the SDK. If found, set PlatformToolset to use the SDK tools.
Otherwise, fail with a concise and informative error.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 403507f..0b939af 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -19,6 +19,10 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator() { this->FindMakeProgramFile = "CMakeVS10FindMake.cmake"; + std::string vc10Express; + this->ExpressEdition = cmSystemTools::ReadRegistryValue( + "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\10.0\\Setup\\VC;" + "ProductDir", vc10Express, cmSystemTools::KeyWOW64_32); } //---------------------------------------------------------------------------- @@ -63,6 +67,16 @@ void cmGlobalVisualStudio10Generator } //---------------------------------------------------------------------------- +const char* cmGlobalVisualStudio10Generator::GetPlatformToolset() +{ + if(!this->PlatformToolset.empty()) + { + return this->PlatformToolset.c_str(); + } + return 0; +} + +//---------------------------------------------------------------------------- std::string cmGlobalVisualStudio10Generator::GetUserMacrosDirectory() { std::string base; |