【问题标题】:cmake windows x64 buildscmake windows x64 构建
【发布时间】:2018-12-23 08:37:18
【问题描述】:

有没有办法使用 cmake gui 来指定 x64 构建,因为默认情况下,Windows 上的 cmake 创建一个 32 位 Visual Studio 解决方案。

从命令行,人们说这样做:

C:\projectx\build> cmake ..\make -G "Visual Studio 10 Win64"

但是如何从 cmake windows gui 获取命令行参数?

见:

http://www.saoe.net/blog/778/

How to build x86 and/or x64 on Windows from command line with CMAKE?

cmake -G Ninja on windows specify x64

【问题讨论】:

    标签: cmake cmake-gui


    【解决方案1】:

    我发现这样做的唯一方法是擦除输出文件夹,然后让您在首次配置 cmake 项目时选择 Visual Studio 10 Win64。确保在下拉列表中选择正确的项目。

    【讨论】:

      【解决方案2】:

      您可以在第一次配置过程中指定它。

      之后,如果要更改机器类型,则需要使用“文件”菜单中的“删除缓存”命令删除缓存,然后重新开始配置过程。

      【讨论】:

        猜你喜欢
        • 2020-08-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-04-05
        相关资源
        最近更新 更多