Changing current cmake generator

后端 未结 2 2036
孤街浪徒
孤街浪徒 2021-01-07 18:49

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

相关标签:
2条回答
  • 2021-01-07 18:57

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

    0 讨论(0)
  • 2021-01-07 19:03

    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"
    
    0 讨论(0)
提交回复
热议问题