Skip to content

Improve default generator selection and make it configurable

Now whenever I build a visual studio project I have to type cmake .. -G "Visual Studio 14 Win64" which is kind of tedious when compare to linux a simple cmake .. would work. Is there any way that I can set this up in my CMakeLists so when I type cmake .. it will generate 64 bit build by default?

I am using the latest cmake 3.6.2.

Related but unanswered: http://stackoverflow.com/questions/6430251/what-is-the-default-generator-for-cmake-in-windows

Thanks, Jason

Edited by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information