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" |
| Scope: | resource |
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" |
| Scope: | resource |
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" |
| Scope: | resource |
The default CMake build type. This value is passed as -DCMAKE_BUILD_TYPE during configuration.
| ย | ย |
|---|---|
| Debug | Debug information included, no optimization |
| Release | Fully optimized, no debug information |
| RelWithDebInfo | Optimized with debug information |
| MinSizeRel | Optimized for minimum binary size |
Example:
{
"workspaceTasks.cmake.buildType": "Release"
}
workspaceTasks.cmake.generator
| ย | ย |
|---|---|
| Type: | string |
| Default: | "" |
| Scope: | resource |
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"
}