[CMake] CMake and VS Community Edition
Bill Hoffman
bill.hoffman at kitware.com
Thu Nov 20 11:40:45 EST 2014
On 11/20/2014 12:32 AM, Andrew Maclean wrote:
> I only picked this up because I use the Microsoft Visual Studio Version
> Selector to open the *.sln file by default.
>
> Tested on CMake 3.0.2 and the pre-release version CMake 3.1.20141119
>
> VS 2013 Community Edition will happily use the VS Express 2013 solution
> file.
>
Not sure there is much that can be done about this...
The code checks the registry:
cmGlobalVisualStudio12Generator.cxx:
...
std::string vc12Express;
this->ExpressEdition = cmSystemTools::ReadRegistryValue(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\12.0\\Setup\\VC;"
"ProductDir", vc12Express, cmSystemTools::KeyWOW64_32);
this->DefaultPlatformToolset = "v120";
I guess you could check it for both, and if the non-express one was
around use that one...
At least it seems to work with both.
-Bill
More information about the CMake
mailing list