在 nmake x64 中使用 cmake [英] Using cmake with nmake x64
本文介绍了在 nmake x64 中使用 cmake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用cmake生成了一个NMake文件,一切正常.
I use cmake to generate a NMake file, everything goes fine.
我使用 x64 工具集(没有 Visual Studio,只有 SDK),所以我输入 nmake,但它生成一个 x86 构建而不是 x64 构建.
I use the x64 toolsets (without Visual Studio, only the SDK), so I type nmake, but it generate a x86 build and not a x64 build.
你知道为什么吗?以及如何强制 nmake 以 x64 为目标?
Do you know why ? and how to force nmake to target x64 ?
谢谢
推荐答案
只是分享一下,使用以下强制x64平台.使用此命令提示符命令.
Just to share, use the following to force the x64 platform. Use this command prompt command.
VsDevCmd.bat -host_arch=amd64 -arch=amd64
-host_arch 和 -arch 都是强制性的!
Both -host_arch and -arch are mandatory !
这篇关于在 nmake x64 中使用 cmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文