Issue
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
Solution
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.
Answered By - HighCommander4