将cmake与nmake x64结合使用 [英] Using cmake with nmake x64
本文介绍了将cmake与nmake x64结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用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 !
这篇关于将cmake与nmake x64结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文