For context I am running Eclipse Kepler (version 4.3.2) for C++, though this question should apply to all other versions as well.
I am aware that under Project -> Properties -> C/C++ General -> Paths and Symbols
, it is possible to export and import settings. However, as far as I have seen, this only affects the settings under Includes
and Symbols
tabs, ignoring Libraries
, Library Paths
, and all the rest. Basically, I need to to capture C/C++ General
and Project -> Properties -> C/C++ Build
in their entirety.
Because of network restrictions, this absolutely must be done without third-party tools in my case. If there are good plugins or tools that would make this easier, though, go ahead and post them for the benefit of anyone reading this in the future!
A couple of useful findings:
The .cproject
file in the Eclipse project's working directory contains all build settings for all build configurations. Replacing a project's .cproject
will replace its settings. Note it's not as elegant as exporting/importing: all settings are overwritten, so it isn't a good approach if you want to import the settings into an existing project. It's useful for knowing you have the right build settings from scratch. though.
Alternatively, you can go to Project -> Build Configurations -> Manage...
to manage configurations. It's possible to create a new build configuration by copying it from another project in your workspace.
Both are kind of clunky, but they may be enough to get the job done depending on the circumstance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With