CMake Settings
Table of Contents
- workspaceTasks.applicationPath.cmake
- workspaceTasks.cmake.buildDirectory
- workspaceTasks.cmake.buildType
- workspaceTasks.cmake.generator
- 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"
}