CLion 2019.1 Help

Create Compound Configurations

Suppose you would like to launch multiple Run/Debug configurations simultaneously. For example, you may want to run several configurations of different types or a sequence of several test configurations. You can configure this behavior with a compound Run/Debug configuration.

You can choose the desired CMake profile for a configuration that you are going to add to the compound Run/Debug configuration. If you don't choose a CMake profile, CLion uses the default one. You can select the profile in Settings / Preferences | Build, Execution, Deployment | Cmake or from the Run/Debug configuration switcher:

cmake profiles in the configuration switcher

When you run or debug your code using a compound configuration, you actually launch a sequence of configurations it includes in the order they are listed.

Create a compound Run/Debug configuration

  1. Open the Run/Debug configurations dialog. You can access it from the Run | Edit Configurations main menu or using the run configuration switcher on the toolbar.

  2. In the dialog that opens, click icons.general.add.png and select Compound from the Add New Configuration menu.

    compound run/debug configuration

  3. To include a new Run/Debug configuration into compound configuration (and choose the desired CMake profile for it), click icons.general.add.png and select the desired one from the list. Then select the preferred CMake profile:

    cmake profile for a configuration included in compound

Last modified: 11 April 2019