[CMake] CMake 3.7.0-r2 Open Project sometimes picks wrong version of Visual Studio

Brad King brad.king at kitware.com
Fri Nov 4 14:55:33 EDT 2016


On 11/03/2016 06:04 PM, John Drescher wrote:
> I opened a project in cmake-gui using the open project button from a
> vc 2010 build of a project. The open project opened the project in
> Visual Studio 2010. Later I opened the same project but a different
> build tree for Visual Studio 2013 CMake-gui had all of the correct
> information for the Visual Studio 2013 build but open project tried to
> open the Visual Studio 2013 solution in Visual Studio 2010 instead of
> the expected Visual Studio 2013. Is there a way to get/force this
> feature to reliably use the correct ide?

The feature is new in 3.7 and was contributed here:

 cmake-gui: Add button to open the generated project
 https://gitlab.kitware.com/cmake/cmake/commit/1ca2d5d1

I'm not particularly familiar with how it works, but from a quick
glance at the code it may be using file associations.

If all that happened during a single cmake-gui session perhaps some
state is not being cleaned up when changing build trees.

-Brad



More information about the CMake mailing list