Showing results for CMake - C++ Team Blog

Feb 7, 2020
Post comments count0
Post likes count2

Visual Studio Code CMake Tools Extension: Multi-root workspaces and file-based API

Erika Sweet
Erika Sweet

The February 2020 update of the Visual Studio Code CMake Tools extension is now available. This release includes two of the extension’s top feature requests: file-based API support and multi-root workspaces. For a full list of this release’s improvements check out the release notes on GitHub. Multi-root workspace support The latest release of the...

C++CMakeVisual Studio Code
Feb 6, 2020
Post comments count9
Post likes count1

Easily Add, Remove, and Rename Files and Targets in CMake Projects

Will Buik
Will Buik

It’s easier than ever to work with CMake projects in Visual Studio 2019 16.5 Preview 2. Now you can add, remove, and rename source files and targets in your CMake projects from the IDE without manually editing your CMake scripts. When you add or remove files with the Solution Explorer, Visual Studio will automatically edit your CMake project. You c...

CMakeC++
Feb 6, 2020
Post comments count1
Post likes count1

Code Navigation for CMake Scripts

Will Buik
Will Buik

Visual Studio 2019 16.5 Preview 2 makes it easy to make sense of complex CMake projects. Code navigation features such as Go To Definition and Find All References are now supported for variables, functions, and targets in CMake script files. This can be a huge timesaver because CMake projects with more than a handful of source files are often organ...

CMakeC++
Jan 24, 2020
Post comments count2
Post likes count1

CMake, Linux targeting, and IntelliSense improvements in Visual Studio 2019 version 16.5 Preview 2

Erika Sweet
Erika Sweet

Visual Studio’s native support for CMake allows you to target both Windows and Linux from the comfort of a single IDE. Visual Studio 2019 version 16.5 Preview 2 introduces several new features specific to cross-platform development, including: File copy optimizations for CMake projects targeting a remote Linux syste...

C++CMakeNew Feature
Jan 10, 2020
Post comments count1
Post likes count0

Improvements to Accuracy and Performance of Linux IntelliSense

Erika Sweet
Erika Sweet

This blog post was written by Paul Maybee, a Principal Software Engineer on the C++ Cross-Platform Team.  Accurate C++ IntelliSense requires access to the C++ headers that are referenced by C++ source files. For Linux scenarios the headers referenced by a Linux MSBuild or CMake project are copied to Windows by Visual Studio from the Linux device...

C++CMakeNew Feature
Dec 18, 2019
Post comments count1
Post likes count0

Debugging Linux CMake Projects with gdbserver

Erika Sweet
Erika Sweet

Update 2/20/20: We have addressed a bug which allows you to debug simple CMake projects using one level of CMakeLists.txt files with gdbserver in Visual Studio 2019 version 16.5 Preview 3. The example launch configuration has been updated below. Gdbserver is a program that allows you to remotely debug applications running on Linux. It is esp...

C++CMakeNew Feature
Dec 13, 2019
Post comments count8
Post likes count1

Build C++ Applications in a Linux Docker Container with Visual Studio

Erika Sweet
Erika Sweet

Docker containers provide a consistent development environment for building, testing, and deployment. The virtualized OS, file system, environment settings, libraries, and other dependencies are all encapsulated and shipped as one image that can be shared between developers and machines. This is especially useful for C++ cross-platform developers b...

C++CMakeLinux
Nov 21, 2019
Post comments count0
Post likes count0

CMake Tools Extension for Visual Studio Code

Erika Sweet
Erika Sweet

Microsoft is now the primary maintainer of the CMake Tools extension for Visual Studio Code. The extension was created and previously maintained by vector-of-bool, who has moved on to other things. Thank you vector-of-bool for all of your hard work getting this extension to where it is today! About the extension The CMake Tools extension provides...

C++AnnouncementCMake
Nov 18, 2019
Post comments count2
Post likes count0

Set Environment Variables for Debug, Launch, and Tools with CMake and Open Folder

Will Buik
Will Buik

There are many reasons why you may want to customize environment variables. Many build systems use environment variables to drive behavior; debug targets sometimes need to have PATH customized to ensure their dependencies are found; etc. Visual Studio has a mechanism to customize environment variables for debugging and building CMake projects and C...

CMakeOpenFolder
Oct 15, 2019
Post comments count4
Post likes count0

Usability Improvements for CMake in Visual Studio 2019 version 16.4: Launch Target Selection and Overview Pages

Erika Sweet
Erika Sweet

We hear your feedback, and in Visual Studio 2019 version 16.4 Preview 2 we have addressed one of our top Developer Community issues related to CMake development in Visual Studio by revamping the selection of CMake launch targets. We have also added Overview Pages for CMake to help you get started with CMake and cross-platform development. If you’re...

AnnouncementCMakeNew Feature