使用 cmake-gui 使用 makefile 构建 64 位应用程序 [英] Building 64bit application with makefiles using cmake-gui

查看:31
本文介绍了使用 cmake-gui 使用 makefile 构建 64 位应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 cmake-gui 并点击配置时,我可以为我的项目指定生成器.我可以选择 Visual Studio 解决方案、Eclipse、makefiles 等...

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...

我在 64 位系统上,想构建 64 位应用程序.到目前为止,我使用 Visual Studio 10 Win64 生成器来生成我的解决方案.不,我想(必须)用 makefile 构建它.但是没有选项 32b/64b.

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.

是否默认使用 64 位构建的 makefile(在 64b 系统上)和仅在我的 cmake 文件中使用类似 export CFLAGS=-m32 的东西后才用于 32b?

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?

推荐答案

是否默认使用 64 位构建的 makefile(在 64b 系统上)

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

没错.

只有在我的 cmake 文件中使用诸如 export CFLAGS=-m32 之类的东西后才能使用 32b 吗?

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

没错.不过,相关变量称为 CMAKE_C_FLAGS.

Right. The relevant variable is called CMAKE_C_FLAGS though.

这篇关于使用 cmake-gui 使用 makefile 构建 64 位应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆