- Qt Creator Documentation
- Meson build configuration
- Qt Creator 20.0.0

Meson ◦ Nimble

# Meson build configuration

To specify build settings for the selected kit, go to Projects > Build Settings.

Meson builds projects in the directory specified in the Build directory field.

Build settings are grouped by category. You can modify all settings, except `backend`, which is forced to Ninja, `buildtype`, `debug`, and `optimization` to ensure compatibility with Qt Creator.

To modify a setting, double-click it. Modified settings are formatted in bold until you select Apply configuration changes to apply them. This triggers `meson configure`. If problems arise, select Wipe Project to fix the build directory configuration.

Meson supports cross-compiling in addition to native building. Qt Creator generates a native build file for you. To use a custom native file or a cross file instead, specify the file name in Parameters. For example, `--cross-file cross_file.txt`.

## Meson Build Steps

Qt Creator builds Meson projects by running `meson compile --verbose target`.

You can add arguments and targets for the build command in Build Steps.

The build errors and warnings are parsed and displayed in Issues.

## Meson Clean Steps

When building with Meson, you can add arguments and targets for the clean command in Clean Steps.

The build errors and warnings are parsed and displayed in Issues.

See also Activate kits for a project, Configure projects for building, Configure projects for running, Open projects, Building and running projects, and Meson.