Using cmake with nmake x64

和自甴很熟 提交于 2020-01-03 16:48:26

问题


I use cmake to generate a NMake file, everything goes fine.

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.

Do you know why ? and how to force nmake to target x64 ?

Thanks


回答1:


Just to share, use the following to force the x64 platform. Use this command prompt command.

VsDevCmd.bat -host_arch=amd64 -arch=amd64

Both -host_arch and -arch are mandatory !



来源:https://stackoverflow.com/questions/48661598/using-cmake-with-nmake-x64

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!