有没有办法使用 cmake gui 指定 x64 构建,因为默认情况下 Windows 上的 cmake 创建 32 位 Visual Studio 解决方案。
从命令行,人们说这样做:
C:\projectx\build> cmake ..\make -G "Visual Studio 10 Win64"
但是如何从 cmake windows gui 获取命令行参数?
参见:
How to build x86 and/or x64 on Windows from command line with CMAKE?
最佳答案
我发现执行此操作的唯一方法是删除输出文件夹,然后它允许您在首次配置 cmake 项目时选择 Visual Studio 10 Win64。确保您在下拉列表中选择了正确的项目。
关于cmake windows x64 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51350947/