CMake Settings

Table of Contents

  1. workspaceTasks.applicationPath.cmake
  2. workspaceTasks.cmake.buildDirectory
  3. workspaceTasks.cmake.buildType
  4. workspaceTasks.cmake.generator
  5. Related

workspaceTasks.applicationPath.cmake

Type: string Default: "cmake"

Path to the CMake executable. On Windows, .exe is appended automatically when the path ends with cmake.

Example:

{
  "workspaceTasks.applicationPath.cmake": "cmake"
}

workspaceTasks.cmake.buildDirectory

Type: string Default: "build"

The directory (relative to the workspace root) where CMake build output is placed. This is the directory passed to the -B flag when configuring a project, and is where the generated build files will be written.

Example:

{
  "workspaceTasks.cmake.buildDirectory": "build"
}

workspaceTasks.cmake.buildType

Type: string Default: "Debug" Options: "Debug", "Release", "RelWithDebInfo", "MinSizeRel"

The default CMake build type. This value is passed as -DCMAKE_BUILD_TYPE during configuration.

  • Debug - Debug information included, no optimisation
  • Release - Fully optimised, no debug information
  • RelWithDebInfo - Optimised with debug information
  • MinSizeRel - Optimised for minimum binary size

Example:

{
  "workspaceTasks.cmake.buildType": "Release"
}

workspaceTasks.cmake.generator

Type: string Default: ""

The CMake generator to use (e.g. "Ninja", "Unix Makefiles", "Visual Studio 17 2022"). Leave empty to use CMakeโ€™s default generator for the current platform.

Example:

{
  "workspaceTasks.cmake.generator": "Ninja"
}


© 2026 Ryan Conrad. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.