VeLKerr VeLKerr - 1 year ago 223
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)?

Answer Source

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"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download