Using cmake with nmake x64

2019-06-24 04:59发布

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条回答
我想做一个坏孩纸
2楼-- · 2019-06-24 05:34

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 !

查看更多
登录 后发表回答