
Previously the CMake Tools extension only supported cmake-server mode, which was deprecated with CMake version 3.15. During build system generation CMake will read those query files and write object model response files for the client to read. It allows the client to write query files prior to build system generation.

File-based APIĬMake version 3.14 introduced file-based API, which is a new way for clients (like the CMake Tools extension) to get semantic information about the underlying build system generated by CMake. These commands are only available when you have more than one folder open in your workspace.Ĭommands to configure, build, clean, rebuild and reconfigure all projects are also available from the CMake: Project Outline view. If toSelectActiveFolder is set to false then your active folder will only change if you manually run the CMake: Select Active Folder command.įinally, the CMake Tools extension has also added new commands like CMake: Configure All Projects and CMake: Build All Projects to apply existing CMake commands to all the folders in your workspace.

To open your workspace settings, use the command “Workspaces: Open Workspace Configuration File”. You can also disable this behavior by setting the user-level or workspace-level setting CMake: Auto Select Active Folder to false. You can temporarily override the active folder by selecting the active folder in the status bar or running the CMake: Select Active Folder command. Viewing or editing a file in CMakeProject-1 will cause CMakeProject-1 to be the active folder, while viewing or editing a file in CMakeProject-2 will cause CMakeProject-2 to be the active folder. In the following example my active folder is CMakeProject-1.īy default, the active folder will change based on your file context. The active folder is the folder to which all CMake-specific commands (configure, build, debug, etc.) are applied. When a workspace contains multiple folders, the CMake Tools extension will display the active folder in the left-hand side of the status bar. This means you can have two or more folders containing a root CMakeLists.txt open side-by-side in Visual Studio Code. The latest release of the CMake Tools extension comes with support for multi-root workspaces.
#CMAKE VISUAL STUDIO MULTI JOBS FULL#
For a full list of this release’s improvements check out the release notes on GitHub.

This release includes two of the extension’s top feature requests: file-based API support and multi-root workspaces.
#CMAKE VISUAL STUDIO MULTI JOBS UPDATE#
The February 2020 update of the Visual Studio Code CMake Tools extension is now available.
