当“自动生成makefile”时,如何更改Eclipse CDT中的默认构建目录路径启用了? [英] How to change default build directory path in Eclipse CDT when "Generate makefiles automatically" is enabled?
问题描述
附件是截图显示相同的。我需要将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屋!