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:

  1. Right-click the main node of the project and choose Properties.
  2. In the Project Properties dialog box, click Manage Configurations.

To add a configuration:

  1. In the Configurations dialog box, select an existing configuration and click Duplicate.
  2. Click Rename.
  3. In the Rename dialog box, type the name of the new configuration and click OK.
  4. Set the properties of the new configuration and click OK.

To set the active configuration:

To build a project with multiple configurations:

  1. Select the project node and choose Run > Batch Build Project, or right-click the project node and choose More Build Commands > Batch Build.
  2. In the Batch Build dialog box, select the configurations you want to build.
  3. Click Build for an incremental build or click Clean and Build for a full build.
See also
Setting C and C++ Compiler Options
Setting C and C++ Linker Options
Setting Project Properties

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.