当“自动生成makefile”时,如何更改Eclipse CDT中的默认构建目录路径启用了? [英] How to change default build directory path in Eclipse CDT when "Generate makefiles automatically" is enabled?

查看:788
本文介绍了当“自动生成makefile”时,如何更改Eclipse CDT中的默认构建目录路径启用了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse Neon CDT上工作,我必须在C / C ++ Build设置中启用自动生成文件,以便我的项目进行编译。但是,一旦我这样做,构建目录就会消失,我无法找到一种更改默认构建目录路径的方法。如何解决这个问题?



附件是截图显示相同的。我需要将build目录从workspace / Default更改为workspace / target。





谢谢

解决方案

我不知道为什么在自动生成Makefile时,无法直接编辑构建目录,但这里是一种间接让它成为你想要的:




  • 在该对话框的顶部,点击管理配置...

  • 创建一个名为target的新配置(您想要的构建目录被命名)。您可以从默认配置复制设置。

  • 在管理配置旁边的下拉菜单中,选择新创建的目标配置。

  • 观察根据需要将目录更改为目标。


I am working on Eclipse Neon CDT where I have to enable "Generate Make Files Automatically" at C/C++ Build Settings for my project to compile. But, once I do that the build directory grays out and am unable to find a way to change the default build directory path. How do I solve this issue?

Attached is the screenshot showing the same. I need to change the build directory from workspace/Default to workspace/target.

Thanks

解决方案

I'm not sure why you can't directly edit the "Build directory" when "Generate Makefiles automatically" is checked, but here is a way to indirectly get it to be what you want:

  • Near the top of that dialog, click "Manage Configurations..."
  • Create a new configuration with the name "target" (what you want your build directory to be named). You can copy settings from the Default configuration.
  • In the dropdown next to Manage Configurations, select the newly created "target" configuration.
  • Observe the Build directory change to "target" as desired.

这篇关于当“自动生成makefile”时,如何更改Eclipse CDT中的默认构建目录路径启用了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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