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

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to