VeLKerr VeLKerr - 1 month ago 7x
C++ Question

Changing current cmake generator

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


You cannot reliably change the generator used for an output (= binary) directory once generation has already happened there once. You should start in a fresh output directory.

Once there, simply use CMake's -G command-line option:

cmake -G "Visual Studio 12 2013 Win64"