Managing Project Configurations
See Also
When a C or C++ project is created, it has a Debug configuration and a
Release configuration. A configuration is a collection of settings used for the project.
You can easily switch many settings at once when you select a configuration. The Debug
configuration builds a version of your application that includes debug information.
The Release configuration builds an optimized version.
When you manage configurations, you can modify configuration properties and add new configurations.
And you can select the
active configuration, which is used by default when you build or run your project.
To manage project configurations:
- Right-click the main node of the project and choose Properties.
- In the Project Properties dialog box, click Manage Configurations.
To add a configuration:
- In the Configurations dialog box, select an existing configuration and click Duplicate.
- Click Rename.
- In the Rename dialog box, type the name of the new configuration and click OK.
- Set the properties of the new configuration and click OK.
To set the active configuration:
- In the Configuration dialog box, select a configuration and click Set Active.
- Click OK in the Configurations dialog box and click Apply or OK in the Project Properties dialog box.
- Tip: You can also set the active configuration in the IDE's toolbar, or by right-clicking the project node
and selecting Set Configuration.
To build a project with multiple configurations:
- Select the project node and choose Run > Batch Build Project, or right-click the project node and choose More Build Commands > Batch Build.
- In the Batch Build dialog box, select the configurations you want to build.
- Click Build for an incremental build or click Clean and Build for a full build.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.