Change current generator

How to change the current cmake generator without using the Cmake GUI (I want to change the standard generator on Visual Studio 12 2013 Win64)?

+16
c ++ cmake
Sep 14 '15 at 16:44
source share
3 answers

You cannot reliably change the generator used for the output (= binary) directory once the generation has already been there. You should start with a new directory.

After that, just use the CMake -G command line option :

 cmake -G "Visual Studio 12 2013 Win64" 
+14
Sep 14 '15 at 17:00
source share

Go to File-> Delete Cache and then click Configure again.

+37
Sep 09 '16 at 4:39 on
source share

Thank you very much, everything works, delete the cache and click "Configure" again, then you can choose the version suitable for you.

0
May 23 '19 at 1:14
source share



All Articles