Building 64bit application with makefiles using cmake-gui

落花浮王杯 提交于 2021-02-09 02:50:11

问题


When I run cmake-gui and hit configure, I can specify the generator for my project. I can choose Visual Studio solution, Eclipse, makefiles etc...

I am on 64bit system and want to build 64bit application. Till now, I used Visual Studio 10 Win64 generator to generate my solutions. No I want to (have to) build it with makefiles. But there is no options 32b/64b.

Are makefiles for 64bit build used by default (on 64b system) and for 32b only after using something like export CFLAGS=-m32 inside my cmake files?


回答1:


Are makefiles for 64bit build used by default (on 64b system)

Right.

and for 32b only after using something like export CFLAGS=-m32 inside my cmake files?

Right. The relevant variable is called CMAKE_C_FLAGS though.



来源:https://stackoverflow.com/questions/12844012/building-64bit-application-with-makefiles-using-cmake-gui

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