CMake Qt Vendor Presets

Specify Qt Creator preferences in the vendor section in CMakePresets.json and CMakeUserPresets.json.

CMake configuration presets

The following table summarizes the available presets.

PresetDescriptionRead More
AutorunCMakeRuns CMake to refresh project information when you edit a CMakeLists.txt configuration file in a project. Also, refreshes project information when you build the project.View CMake project contents
AskBeforePresetsReloadAsks before acting when you select Build > Reload CMake Presets.CMake Presets
AskReConfigureInitialParamsAsks before acting when you select Re-configure with Initial Variables.Re-configuring with Initial Variables
PackageManagerAutoSetupSets up the Conan or vcpkg package manager for use with CMake.Using CMake with Package Managers
ShowAdvancedOptionsByDefaultShows all CMake variables by default in Initial Configuration and Current Configuration.Viewing Advanced Variables
ShowSourceSubfoldersHides subfolder names and arranges the files according to their source group in the Projects view.Hide subfolder names in Projects view
UseJunctionsForSourceAndBuildDirectoriesOn Windows, uses junction points for CMake configure, build, and install operations.Using Junction Points on Windows

An example of CMake configuration presets:

 "vendor": {
   "qt.io/QtCreator/1.0": {
     "AskBeforePresetsReload": false,
     "AskReConfigureInitialParams": false,
     "AutorunCMake": false,
     "PackageManagerAutoSetup": false,
     "ShowAdvancedOptionsByDefault": true,
     "ShowSourceSubFolders": false,
     "UseJunctionsForSourceAndBuildDirectories": true
   }
 }

Debugger presets

The following table summarizes the available presets.

For more information about debugger preferences, see Add debuggers.

PresetDescription
AbisComma-separated list of system architecture definitions.
BinaryPath to the debugger executable. Can be an absolute path, the value auto, or an ABI. Finds the appropriate debugger for MSVC toolchains where Qt Creator does not know the binary path.
DisplayNameName of the debugger.
EngineTypeDebugger engine type:
  • 1 for GDB
  • 4 for CDB
  • 8 for PDB
  • 256 for LLDB
  • 512 for GDB DAP
  • 1024 for LLDB DAP
  • 4096 for uVision Debugger
VersionVersion number of the debugger.

An example of Qt Creator debugger presets:

 "vendor": {
   "qt.io/QtCreator/1.0": {
     "debugger": {
       "DisplayName": "GNU gdb 11.2.0 for MinGW 11.2.0 64-bit",
       "Abis": ["x86-windows-msys-pe-64bit"],
       "Binary": "C:/Qt/Tools/mingw1120_64/bin/gdb.exe",
       "EngineType": 1,
       "Version": "11.2.0"
     }
   }
 }

See also CMake Build Configuration, CMake, CMake Presets, and SDK Tool.